HOWTO Create a Service: Difference between revisions
From Pumping Station One
m Robot: Cosmetic changes |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
== Why do it this way? == | == Why do it this way? == | ||
* Your service will be watchdogged by systemd | * Your service will be watchdogged by systemd | ||
| Line 23: | Line 23: | ||
The creates a user named <code>strup</code>. | The creates a user named <code>strup</code>. The -b indicates the base home directory is /srv/, and therefore the system accounts home directory is /srv/strup/ | ||
== Working with SystemD == | == Working with SystemD == | ||
| Line 64: | Line 64: | ||
Your are now running as the user ''strup'', but you are now in the user's | Your are now running as the user ''strup'', but you are now in the user's home directory. Running <code>cd</code> without parameters will switch to the current user's home directory. | ||
cd | cd | ||