diff --git a/Makefile.am b/Makefile.am index dba31ff4..f614f816 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,6 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = plugins src +bin_SCRIPT = service doc_DATA = README.md LICENSE contrib/finit.conf EXTRA_DIST = README.md LICENSE ChangeLog.md contrib/finit.conf diff --git a/service b/service new file mode 100755 index 00000000..a1f50fcf --- /dev/null +++ b/service @@ -0,0 +1,33 @@ +#!/bin/sh + +JOB=$1 +CMD=$2 + +usage() { + echo "Usage: service [job# | name] " + exit 1 +} + +if [ $# -eq 0 ]; then + initctl show + exit 0 +fi + +case $CMD in + stop) + ;; + start) + ;; + restart) + ;; + status) + ;; + show) + ;; + *) + usage + ;; +esac + +initctl $2 $1 +