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.php
Restart=always
[Install]
WantedBy=multi-user.target
---- >8 ---- /lib/systemd/system/gearman-worker.service
systemctl daemon-reload
systemctl enable gearman-worker
systemctl start gearman-worker