Skip to content

Instantly share code, notes, and snippets.

@mkomitee
Last active August 29, 2015 14:21
Show Gist options
  • Save mkomitee/a67589d7f9d3c9b23105 to your computer and use it in GitHub Desktop.
Save mkomitee/a67589d7f9d3c9b23105 to your computer and use it in GitHub Desktop.
systemd stuff
# .../all-services-ready.target
[Unit]
Description=All Services Ready
AllowIsolate=yes
Wants=multi-user.target
After=multi-user.target
# .../manage-services.service
[Unit]
Description=Manage Services
Wants=multi-user.target
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/sd-mgmt.sh start
ExecStop=/usr/lib/systemd/sd-mgmt.sh stop
RemainAfterExit=yes
[Install]
WantedBy=all-services-ready.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment