Use systemd for managing this process:---- 8< ---- /lib/systemd/system/gearman-worker.service[Unit]Description=My own gearman worker[Service]ExecStart=/usr/bin/php /var/www/my-worker.phpRestart=always[Install]WantedBy=multi-user.target---- >8 ---- /lib/systemd/system/gearman-worker.servicesystemctl daemon-reloadsystemctl enable gearman-workersystemctl start gearman-worker