Add logging and init script
This commit is contained in:
parent
e5eaba1bc8
commit
6a68be739a
6
etc/init.d/vmmgr
Executable file
6
etc/init.d/vmmgr
Executable file
@ -0,0 +1,6 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
command=/usr/share/vmmgr/wsgi.py
|
||||
description="VM manager"
|
||||
pidfile=/var/run/vmmgr.pid
|
||||
start_stop_daemon_args="--background --make-pidfile --stdout /var/log/vmmgr.log --stderr /var/log/vmmgr.log"
|
4
etc/logrotate.d/vmmgr
Normal file
4
etc/logrotate.d/vmmgr
Normal file
@ -0,0 +1,4 @@
|
||||
/var/log/vmmgr.log {
|
||||
missingok
|
||||
copytruncate
|
||||
}
|
Loading…
Reference in New Issue
Block a user