Oxidized init.d script for Centos 6

Oxidized init.d script for Centos 6

 

To run oxidized as service


1. copy init script from oxidized/extra

 cp /usr/local/rvm/gems/ruby-2.3.0/gems/oxidized-0.24.0/extra/oxidized.init.d /etc/init.d/<br />

2. if you installed oxidized using manual (added system user oxidized) and rvm you need to modify script

#cmd=oxidized
cmd="sudo -u oxidized /usr/local/rvm/gems/ruby-2.3.0/wrappers/oxidized"
args="--daemonize"

#pidfile=/etc/oxidized/pid
pidfile=/home/oxidized/.config/oxidized/pid


#export OXIDIZED_HOME=/etc/oxidized
export OXIDIZED_HOME=/home/oxidized/

3. after that start as normal service

# /etc/rc.d/init.d/oxidized start

# /etc/rc.d/init.d/oxidized status
sudo (pid  9987) is running...


# ps aux | grep oxi
oxidized  9987  1.2  0.6 861488 97496 ?        Sl   08:52   0:25 puma 3.12.0 (tcp://127.0.0.1:8888) [/]

#netstat -tulpn   | grep 88
tcp        0      0 127.0.0.1:8888              0.0.0.0:*                   LISTEN      9987/puma 3.12.0 (t

Comments

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Reduce (shrink) and resize raw disk at Proxmox

How to clean DB from old logs in Magento 1.x