Systemd

From BCCD 3.0

(Difference between revisions)
Jump to: navigation, search
(Links)
m (fix arguments in example)
Line 23: Line 23:
[Service]
[Service]
-
ExecStart=/bin/bccd-passwd-wrapper
+
ExecStart=/bin/bccd-passwd-wrapper bccd
Type=oneshot
Type=oneshot

Revision as of 03:54, 15 December 2016

Contents

Path cheat sheet

Command cheat sheet

Example unit

[Unit]
Description="Set BCCD user password"

[Service]
ExecStart=/bin/bccd-passwd-wrapper bccd
Type=oneshot

# This service is expected to exit completely even if it is successful
RemainAfterExit=yes

# Do not restart after everything exits
Restart=no

# This service requires user interaction via the TTY
StandardInput=tty
StandardOutput=tty

[Install]
WantedBy=multi-user.target

Links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox