Skip to content

Instantly share code, notes, and snippets.

Created October 24, 2013 23:07
Show Gist options
  • Save anonymous/7146700 to your computer and use it in GitHub Desktop.
Save anonymous/7146700 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=/installdata/bash-scripts/script/lxc/lxc-custom-stop.bash /data/vm/lxc/mpd/mpd.conf
ExecStop=/installdata/bash-scripts/script/lxc/lxc-custom-stop.bash
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment