Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
smogonet
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
smogonet
Commits
dba3e80e
Commit
dba3e80e
authored
Dec 26, 2016
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service init script + setup
parent
2af47614
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
init_smogonet
init_smogonet
+47
-0
setup.sh
setup.sh
+4
-0
No files found.
init_smogonet
0 → 100644
View file @
dba3e80e
#!/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
setup.sh
0 → 100644
View file @
dba3e80e
#!/bin/bash
su smok
-c
".env/bin/pip install -r requirements.txt"
supervisorctl restart smok
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment