Difference between revisions of "Systemd FAQ"

From ArchWiki
Jump to: navigation, search
m (Be more clear about changing the allocated number of auto-spawning gettys)
m (Note as tag.)
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
[[es:Systemd FAQ]]
 
[[es:Systemd FAQ]]
 
[[it:Systemd FAQ]]
 
[[it:Systemd FAQ]]
 +
[[ja:Systemd FAQ]]
 
[[zh-CN:Systemd FAQ]]
 
[[zh-CN:Systemd FAQ]]
 
== FAQ ==
 
== FAQ ==
Line 109: Line 110:
 
  # systemctl enable ''myscript''.service
 
  # systemctl enable ''myscript''.service
  
This example assumes you want your script to start up when the target multi-user is launched. Also do chmod 755 to your script to enable execute permissions if you haven't done so already.
+
This example assumes you want your script to start up when the target multi-user is launched. Also do {{ic|chmod 755}} to your script to enable execute permissions if you haven't done so already.
  
 
+
{{Note|In case you want to start a shell script, make sure you have {{ic|#!/bin/sh}} in the first line of the script. Do '''not''' write something like {{ic|<nowiki>ExecStart=/bin/sh /path/to/script.sh</nowiki>}} because that will not work.
'''Note:''' In case you want to start a shell script, make sure you have
+
}}
#!/bin/sh
+
}}
 
+
in the first line of the script. Do not write something like
+
 
+
ExecStart=/bin/sh /path/to/script.sh # DOES NOT WORK
+
 
+
because that won't work.}}
+
  
 
{{FAQ
 
{{FAQ

Revision as of 21:12, 2 September 2013

FAQ

For an up-to-date list of known issues, look at the upstream TODO.

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ