Merge pull request #3 from graysky2/master

added systemd service template
This commit is contained in:
Jordi Sanfeliu 2013-01-15 04:12:17 -08:00
commit 887e536669
2 changed files with 12 additions and 0 deletions

1
README
View File

@ -96,6 +96,7 @@ logo_top.png $BASE_DIR top logo
monitorixico.png $BASE_DIR favicon
monitorix-alert.sh /usr/share/doc/ alert example script
monitorix-apache.conf /etc/httpd/conf.d/ apache configuration
monitorix.service /usr/lib/systemd/system/ Arch Linux systemd service template
monitorix.init /etc/init.d/ redhat init script
monitorix-deb.init /etc/init.d/ debian init script
monitorix.logrotate /etc/logrotate.d/ logrotate script

11
docs/monitorix.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Monitorix
Wants=local-fs.target
[Service]
Type=forking
ExecStart=/usr/bin/monitorix -c /etc/monitorix.conf -p /run/monitorix.pid
PIDFile=/run/monitorix.pid
[Install]
WantedBy=multi-user.target