added building docker container

This commit is contained in:
wt committed 2025-07-25 18:08:10 +07:00
1 parent 0f777d3e68
commit 42a57bf284
5 files changed
+71

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
start() {
notify "Starting scm"
/usr/bin/scm &
echo $(pgrep scm) > /var/run/scm.pid
check $? "start scm"
return $?
}
stop() {
notify "Stopping scm"
kill $(cat /var/run/scm.pid)
check $? "stop scm"
rm /var/run/scm.pid &> /dev/null
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
return 1
esac
return $?