Author Topic: editing the start.php file  (Read 1682 times)

Offline rafisher79

  • Newbie
  • *
  • Posts: 1
  • Helpful: +0/-0
editing the start.php file
« on: 2017-02-21, 06:37:12 AM »
Can anyone give me direction as to how I should edit the start.php file to detach the session?  I'm trying to get it going in cron, and this is my last hurdle. :)

Thank you!

Offline NZBmets

  • Prolific Indexer
  • ****
  • Posts: 260
  • Helpful: +11/-0
Re: editing the start.php file
« Reply #1 on: 2017-03-05, 02:30:27 PM »
I use systemd .. perhaps this will give you (or others) a base:

Code: [Select]
[Unit]
Description=nZEDb TMUX
After=mysql.service
Requires=mysql.service

[Service]
TimeoutStartSec=1min 30s
Type=forking
User=nzb
Group=www-data
ExecStart=/usr/bin/php /mnt/volume/nZEDb/misc/update/nix/tmux/start.php
ExecStop=/usr/bin/php /mnt/volume/nZEDb/misc/update/nix/tmux/stop.php
WorkingDirectory=/mnt/volume/nZEDb/

[Install]
WantedBy=multi-user.target