From ca1043e0618259439c64bb55c9de7359778ab208 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 19 Mar 2014 21:11:54 +0100 Subject: start-ncdc: fix missing tty --- filehooker/root-image/etc/systemd/system/start-ncdc@.service | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'filehooker/root-image/etc') diff --git a/filehooker/root-image/etc/systemd/system/start-ncdc@.service b/filehooker/root-image/etc/systemd/system/start-ncdc@.service index 8099678d..2c897126 100644 --- a/filehooker/root-image/etc/systemd/system/start-ncdc@.service +++ b/filehooker/root-image/etc/systemd/system/start-ncdc@.service @@ -1,13 +1,13 @@ [Unit] -Description=ncdc autoconfig +Description=ncdc autoconfig and startup for %i Requires=network.target local-fs.target [Service] Type=oneshot RemainAfterExit=yes -KillMode=none -ExecStart=sh /krebs/bin/startup_ncdc.ship -ExecStop=sudo -u hooker /usr/bin/tmux send-keys -t dcpp:ncdc "/quit" C-m +#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 -- cgit v1.2.3