add rc-scripts and confs. Make log message clear when host is not found
This commit is contained in:
parent
789e37df6b
commit
db7fcdd66f
5 changed files with 26 additions and 1 deletions
8
hack/rc-scripts/ucloud-scheduler
Normal file
8
hack/rc-scripts/ucloud-scheduler
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
name="$RC_SVCNAME"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
command="$(which pipenv)"
|
||||
command_args="run python ucloud.py scheduler"
|
||||
command_background="true"
|
||||
directory="/root/ucloud"
|
||||
Loading…
Add table
Add a link
Reference in a new issue