diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 14:15:37 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 14:15:37 +0000 |
commit | 2fa9fa780bbf9fe13ab5c7582ac074a4f76c94ed (patch) | |
tree | 18c354d5b527f03ee19aac8d70966789a6f41463 /community/ajaxterm/ajaxterm.initd | |
parent | ad9f95dffd3dbb35ce83dbb7f3790164bdba5a0d (diff) | |
download | aports-2fa9fa780bbf9fe13ab5c7582ac074a4f76c94ed.tar.bz2 aports-2fa9fa780bbf9fe13ab5c7582ac074a4f76c94ed.tar.xz |
community/ajaxterm: moved from testing
Diffstat (limited to 'community/ajaxterm/ajaxterm.initd')
-rw-r--r-- | community/ajaxterm/ajaxterm.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/ajaxterm/ajaxterm.initd b/community/ajaxterm/ajaxterm.initd new file mode 100644 index 0000000000..79797004e2 --- /dev/null +++ b/community/ajaxterm/ajaxterm.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +depend() +{ + need net +} + +start() +{ + ebegin "Starting AjaxTerm on port $PORT" + start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- --daemon --port=$PORT --uid=nobody + eend $? +} + +stop() +{ + ebegin "Stopping AjaxTerm" + start-stop-daemon --stop --pidfile $PIDFILE + rm -f $PIDFILE + eend $? +} |