dot

packages and services management
Log | Files | Refs | README

commit 0a733762bdf12e707ac17ebf9165ebb95b36ba1b
parent dc1e0bc6de922d813f55b6b04e029ec2167c11ec
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 20 Jun 2018 13:21:17 +0200

init script in case it is needed

Diffstat:
As6/s6 | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/s6/s6 b/s6/s6 @@ -0,0 +1,25 @@ +#!/bin/sh -e + +test $# = 0 && exec echo "usage: $0 start|stop|restart|reload|check" + +service=/service/ +export PATH="$PATH:/usr/local/bin" + +case $1 in +(start) + exec s6-svscan $service 2>&1 | exec s6-log t /var/log/s6-svscan/ & + ;; +(stop) + exec s6-svscanctl -t $service + ;; +(reload) + exec s6-svscanctl -a $service + ;; +(restart) + "$0" stop + exec "$0" start + ;; +(check) + exec pgrep s6-svscan + ;; +esac