mikelynn2 / blacklistmonitor

Web based application for monitoring Domains and IPs on RBLs
MIT License
85 stars 42 forks source link

Init script for centos #19

Closed rajcz closed 9 years ago

rajcz commented 9 years ago

Hi, can you add init script for centos? Thanks!

rajcz commented 9 years ago

I have self-solution:-)

[Unit]
Description=Blacklist monitor

[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/php /var/www/html/blacklistmonitor/service/blacklistmonitor.php >>/var/log/blacklistmonitor.log 2>&1

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

Save as /etc/systemd/system/blmon.service after systemctl restart blmon.service systemctl stop blmon.service systemctl start blmon.service

Apply for Centos 7 or Fedora

mikelynn2 commented 9 years ago

@rajcz i went ahead and added this as a centos service script