summarylogtreecommitdiffstats
path: root/sshttpd.service
diff options
context:
space:
mode:
authorDave Simons2015-09-15 10:35:49 +0200
committerDave Simons2015-09-15 10:35:49 +0200
commit92be26df72256dcae82219d3d87a48cb83d09939 (patch)
tree55ab1e1c476a53e21e07527d288f4ebe08fedcc2 /sshttpd.service
parent1f26062b940ad863a9627598a764f9a0c08e85b1 (diff)
downloadaur-sshttp-git.tar.gz
fix unit file
Signed-off-by: Dave Simons <pkgs@simonsd.org>
Diffstat (limited to 'sshttpd.service')
-rw-r--r--sshttpd.service9
1 files changed, 5 insertions, 4 deletions
diff --git a/sshttpd.service b/sshttpd.service
index 876f5be6ce88..fa7954f01848 100644
--- a/sshttpd.service
+++ b/sshttpd.service
@@ -7,10 +7,11 @@ Type=oneshot
User=root
Group=root
EnvironmentFile=/etc/conf.d/sshttpd
-ExecStart=/usr/bin/nf-setup ; \
- /usr/bin/sshttpd -S $SSH_PORT -H $HTTP_PORT -L $LISTEN_PORT -l $LISTEN_ADDRESS -U $USER -R $CHROOT_DIR
-ExecStop=/usr/bin/nf-cleanup ; \
- /usr/bin/killall sshttpd
+ExecStartPre=/usr/bin/nf-setup
+ExecStart=/usr/bin/sshttpd -S $SSH_PORT -H $HTTP_PORT -L $LISTEN_PORT -l $LISTEN_ADDRESS -U $USER -R $CHROOT_DIR
+ExecStop=/usr/bin/nf-cleanup
+ExecStopPost=/usr/bin/killall sshttpd
+RemainAfterExit=yes
[Install]
WantedBy=multi-user.target