Commit dba3e80e authored by Dominik Rosiek's avatar Dominik Rosiek

service init script + setup

parent 2af47614
#!/bin/bash
### BEGIN INIT INFO
# Provides: smogonet
# Required-Start: $remote_fs $network
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: smogonet
# Description: smogonet
### END INIT INFO
start() {
echo -n "Starting : "
su -
cd ~smok/smogonet
su smok -c "git pull"
bash setup.sh
return
}
stop() {
return
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
;;
restart)
stop
start
;;
reload)
;;
*)
echo "Usage: {start|stop|status|reload|restart}"
exit 1
;;
esac
exit $?
\ No newline at end of file
#!/bin/bash
su smok -c ".env/bin/pip install -r requirements.txt"
supervisorctl restart smok
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment