Skip to content

Instantly share code, notes, and snippets.

View davidstrauss's full-sized avatar

David Strauss davidstrauss

View GitHub Profile
# cat /etc/systemd/system/mirrors.mount
[Mount]
What=/dev/mapper/36000d31000491800000000000000005c
Where=/mirrors
Options=defaults,discard
TimeoutSec=600
[Install]
WantedBy=local-fs.target
# systemctl start mirrors.mount
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