tl;dr: Tried everything. No change.
Becomming Jane Root
This is how I become root:
ssh user@myserver
sudo su
Standard procedure, really. This is a non-login shell, but it is not non-interactive. I understand that using -i
gives me the root user’s login environment, but IMHO it’s interactive either way. Source.
I originally installed FOG by calling
cd /home/user/fogproject/bin
sudo ./installfog.sh
since that is the “Ubuntu way” of doing things.
@Sebastian-Roth’s advice
Removing --quiet
from the start-stop-daemon
call does nothing. But it was certainly worth a try.
This is the contents of /var/www/fog/service/
:
root@myserver:/var/www/fog/service# ls -lha
total 176K
drwxr-xr-x 3 www-data www-data 4,0K Sep 17 2014 .
drwxr-xr-x 12 www-data www-data 4,0K Sep 17 2014 ..
-rw-r--r-- 1 www-data www-data 277 Sep 17 2014 alo-bg.php
-rw-r--r-- 1 www-data www-data 739 Sep 17 2014 autologout.php
-rw-r--r-- 1 www-data www-data 8,2K Sep 17 2014 auto.register.php
-rw-r--r-- 1 www-data www-data 855 Sep 17 2014 av.php
-rw-r--r-- 1 www-data www-data 2,4K Sep 17 2014 blame.php
-rw-r--r-- 1 www-data www-data 1,4K Sep 17 2014 capone.php
-rw-r--r-- 1 www-data www-data 318 Sep 17 2014 checkcredentials.php
-rw-r--r-- 1 www-data www-data 108 Sep 17 2014 debug.php
-rw-r--r-- 1 www-data www-data 247 Sep 17 2014 dircleanup-dirs.php
-rw-r--r-- 1 www-data www-data 979 Sep 17 2014 displaymanager.php
-rw-r--r-- 1 www-data www-data 882 Sep 17 2014 donate.php
-rw-r--r-- 1 www-data www-data 269 Sep 17 2014 greenfog.php
-rw-r--r-- 1 www-data www-data 373 Sep 17 2014 grouplisting.php
-rw-r--r-- 1 www-data www-data 402 Sep 17 2014 hostnameloop.php
-rw-r--r-- 1 www-data www-data 1013 Sep 17 2014 hostname.php
-rw-r--r-- 1 www-data www-data 373 Sep 17 2014 imagelisting.php
-rw-r--r-- 1 www-data www-data 51 Sep 17 2014 index.php
-rw-r--r-- 1 www-data www-data 4,2K Sep 17 2014 inventory.php
drwxr-xr-x 2 fog www-data 4,0K Sep 17 2014 ipxe
-rw-r--r-- 1 www-data www-data 655 Sep 17 2014 jobs.php
-rw-r--r-- 1 www-data www-data 215 Sep 17 2014 locationcheck.php
-rw-r--r-- 1 www-data www-data 400 Sep 17 2014 locationlisting.php
-rw-r--r-- 1 www-data www-data 719 Sep 17 2014 man.hostexists.php
-rw-r--r-- 1 www-data www-data 2,0K Sep 17 2014 mc_checkin.php
-rw-r--r-- 1 www-data www-data 3,8K Sep 17 2014 Post_Stage2.php
-rw-r--r-- 1 www-data www-data 1,8K Sep 17 2014 Post_Stage3.php
-rw-r--r-- 1 www-data www-data 930 Sep 17 2014 Post_Wipe.php
-rw-r--r-- 1 www-data www-data 4,2K Sep 17 2014 Pre_Stage1.php
-rw-r--r-- 1 www-data www-data 1,5K Sep 17 2014 PrinterManager.php
-rw-r--r-- 1 www-data www-data 1,9K Sep 17 2014 progress.php
-rw-r--r-- 1 www-data www-data 1,6K Sep 17 2014 register.php
-rw-r--r-- 1 www-data www-data 2,0K Sep 17 2014 servicemodule-active.php
-rw-r--r-- 1 www-data www-data 1,3K Sep 17 2014 snapcheck.php
-rw-r--r-- 1 www-data www-data 3,0K Sep 17 2014 snapins.checkin.php
-rw-r--r-- 1 www-data www-data 1,8K Sep 17 2014 snapins.file.php
-rw-r--r-- 1 www-data www-data 1,2K Sep 17 2014 updates.php
-rw-r--r-- 1 www-data www-data 255 Sep 17 2014 usercleanup-users.php
-rw-r--r-- 1 www-data www-data 1,3K Sep 17 2014 usertracking.report.php
But I found FOGImageReplicator and friends in /opt/fog/service
. That’s where they should be according to the link you posted (my init.d script looks the same, as expected).
root@myserver:/opt/fog/service# ls -lha
total 36K
drwxr-xr-x 9 root root 4,0K Mar 23 14:43 .
drwxr-xr-x 6 root root 4,0K Jul 9 11:12 ..
drwxr-xr-x 2 root root 4,0K May 15 2014 etc
drwxr-xr-x 2 root root 4,0K May 15 2014 FOGImageReplicator
drwxr-xr-x 2 root root 4,0K May 15 2014 FOGMulticastManager
drwxr-xr-x 2 root root 4,0K Mar 23 14:43 FOGPingHosts
drwxr-xr-x 2 root root 4,0K Mar 23 14:43 FOGSnapinReplicator
drwxr-xr-x 2 root root 4,0K May 15 2014 FOGTaskScheduler
drwxr-xr-x 2 root root 4,0K Mar 23 14:43 lib
Enabling error reporting in FOGImageReplicator
also makes no difference Should I be seeing it on the command line, or in a log file somewhere? There are still no files in /opt/fog/log
.
@Wayne-Workman’s tip
It looks like the execute bit is set:
root@myserver:/opt/fog/service/FOGImageReplicator# ls -lha
total 12K
drwxr-xr-x 2 root root 4,0K May 15 2014 .
drwxr-xr-x 9 root root 4,0K Mar 23 14:43 ..
-rwxr-xr-x 1 root root 608 Jul 11 22:11 FOGImageReplicator
@Tom-Elliott’s idea
I went into a interactive root login shell with sudo su -
. And then:
# service FOGImageReplicator start
* Starting FOG Computer Imaging Solution: FOGImageReplicator [ OK ]
# service FOGImageReplicator status
* FOGImageReplicator is not running
Ran the installer again (still in the shell created with sudo su -
# cd /home/user/fogproject/bin
# ./installfog.sh
Not going to bother you with the entire install log. Every step reported ...OK
.
Then lo and behold, still the same
# ls /var/run/fog
FOGImageReplicator.pid FOGMulticastManager.pid FOGPingHosts.pid FOGScheduler.pid FOGSnapinReplicator.pid
# service FOGImageReplicator status
* FOGImageReplicator is not running
# service FOGMulticastManager status
* FOGMulticastManager is not running
# service FOGPingHosts status
* FOGPingHosts is not running
# service FOGScheduler status
* FOGScheduler is not running
# service FOGSnapinReplicator status
* FOGSnapinReplicator is not running
Thanks for the help thus far.