- Service
- -------
-
- After placing the service at
- /usr/lib/systemd/system/bu_cmdr.service
- refresh the daemon:
- systemctl daemon-reload
-
- Start the service
- systemctl start bu_cmdr.service
-
- Stop the service
- systemctl stop bu_cmdr.service
-
- Print the logs (f follow)
- journalctl -fu bu_cmdr.service
-
- To start the service at boot time, place the service file (or symlink) in:
- cd /etc/systemd/system/
- ln -s /usr/lib/systemd/system/bu_cmdr.service
-
- then enable it
- systemctl enable bu_cmdr.service
-
- Handy:
- https://sqlite.org/cli.html
-
- reset the running flag:
-
- [root@server2 svc]# sqlite3 ../data/data.db
- update BULIST set BuRunning=false;
- .quit
-
- Command line
- ------------
-
- Increment debug level
- php main.php debug_inc
- Decrement debug level
- php main.php debug_dec
-
- Debug levels are:
- const DEBUG_LOW = 0;
- const DEBUG_MED = DEBUG_LOW+1;
- const DEBUG_HIGH = DEBUG_MED+1;
- const DEBUG_VHIGH = DEBUG_HIGH+1;
-