summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/etc/systemd/system/start-ncdc@.service
blob: 7b5b1b8ea2a42ffde13f97855fe4281f813020bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=ncdc autoconfig and startup for %i
After=network.target local-fs.target multi-user.target elch-hostname.service

[Service]
Type=oneshot
RemainAfterExit=yes
#KillMode=none
ExecStart=/usr/bin/tmux new-session -n startup -d "/bin/sh /krebs/bin/start-ncdc.ship"
ExecStop=/usr/bin/sudo -u %i /usr/bin/tmux send-keys -t dcpp:ncdc "/quit" C-m

[Install]
WantedBy=multi-user.target