Systemd

From BCCD 3.0

Jump to: navigation, search

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

Troubleshooting

Boot problems

From FreeDesktop's debugging guide

Disabling SysV init redirection

Systemd will generate a wrapper around SysV-style init script, which can make debugging trickier. To disable, set the environment variable _SYSTEMCTL_SKIP_REDIRECT=1.

See https://www.turnkeylinux.org/blog/debugging-systemd-sysv-init-compat for more details

Links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox