diff options
author | makefu <github@syntax-fehler.de> | 2014-03-19 21:11:54 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-03-19 21:11:54 +0100 |
commit | ca1043e0618259439c64bb55c9de7359778ab208 (patch) | |
tree | 1d033bda0be3398f46270b003350696383e2bb1e | |
parent | f802c8bb5ee846361a0c7955b7e7de6174754073 (diff) |
start-ncdc: fix missing tty
-rw-r--r-- | filehooker/root-image/etc/systemd/system/start-ncdc@.service | 8 |
1 files changed, 4 insertions, 4 deletions
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 |