Skip to content

Instantly share code, notes, and snippets.

@davidstrauss
Forked from anonymous/gist:7146700
Last active December 26, 2015 11:49
Show Gist options
  • Save davidstrauss/7146847 to your computer and use it in GitHub Desktop.
Save davidstrauss/7146847 to your computer and use it in GitHub Desktop.
lappi ~ # cat /etc/systemd/system/lxc-mpd.service
[Unit]
Description=Linux Container %i
After=network.target
[Service]
Type=forking
ExecStartPre=/bin/mount --make-rprivate /
ExecStart=/usr/local/bin/lxc-start -d -n mpd -o /data/vm/lxc/mpd/mpd.log
ExecStop=/usr/bin/kill -sSIGPWR $MAINPID
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment