mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
24 lines
451 B
Bash
24 lines
451 B
Bash
#!/bin/sh
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: pockethost
|
|
# Short-Description: starts the pockethost db server
|
|
# Description: starts the pockethost db server
|
|
### END INIT INFO
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
NAME=pockethost
|
|
DESC=pockethost
|
|
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "Starting $DESC" "$NAME"
|
|
pockethost serve --http '127.0.0.1:8090' --dir /data/pockethost &
|
|
|
|
;;
|
|
stop)
|
|
echo "Stopping $DESC" "$NAME"
|
|
|
|
esac
|