diff --git a/etc/init.d/vmmgr b/etc/init.d/vmmgr new file mode 100755 index 0000000..4d7925d --- /dev/null +++ b/etc/init.d/vmmgr @@ -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" diff --git a/etc/logrotate.d/vmmgr b/etc/logrotate.d/vmmgr new file mode 100644 index 0000000..f6fda42 --- /dev/null +++ b/etc/logrotate.d/vmmgr @@ -0,0 +1,4 @@ +/var/log/vmmgr.log { + missingok + copytruncate +}