Message-ID: <1807569867.1645.1556112260749.JavaMail.javamailuser@localhost> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1644_1348242252.1556112260748" ------=_Part_1644_1348242252.1556112260748 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Make minion and miniond executable
=
p>
chmod 0755 minion chmod 0755 miniond
Create an Upstart conf file
cd /etc/init
sudo nano pingapp-process.conf
Copy the following into pingapp-process.c=
onf. Make sure to modify PINGAPP_HOME
# # PingApp Queue PROCESS Daemon Control # description "PingApp Daemon Processing" author "PingApp" # Debugging #console log console none # Configuration variables env PINGAPP_HOME=3D/srv/www/ping.ushahidi.com/public_html # Tell Upstart to respawn our command on a crash # stop restarting if it crashes more then 5 times within 10 seconds respawn respawn limit 5 10 # Tell Upstart to start us after MySQL started and shut us down on system s= hutdown start on started mysql stop on runlevel S # Run as the www-data user and group (same as Apache is under in Ubuntu) setuid www-data setgid www-data # The command Upstart should execute to start our daemon script # Navigate to PingApp directory chdir $PINGAPP_HOME # Run the script exec ./miniond --task=3Dping --subtask=3Dprocess end script
To start the daemon:
sudo start pingapp-process