Add logging and init script

This commit is contained in:
Disassembler 2018-11-07 22:59:32 +01:00
parent e5eaba1bc8
commit 6a68be739a
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 10 additions and 0 deletions

6
etc/init.d/vmmgr Executable file
View 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
View File

@ -0,0 +1,4 @@
/var/log/vmmgr.log {
missingok
copytruncate
}