Opened 10 years ago

Closed 3 years ago

#309 closed defect (fixed)

Mgserver doesn't start in daemon mode after reboot (Linux)

Reported by: jbirch Owned by: jng
Priority: medium Milestone:
Component: Server Version:
Severity: major Keywords:
Cc: External ID:

Description

After a "make install" on mapguide, I can run this sequence to start and stop MapGuide many times, with no problems:

sudo /usr/local/mapguideopensource/server/bin/mgserverd.sh pgrep -f -u root "mgserver daemon" sudo pkill -f -u root "mgserver daemon"

After a reboot, this no longer works; the daemon mode does not start up the server in the background properly (looked through a full ps ax list too). Interactive mode works fine.

If I then run "make install" again and try the above sequence the daemon starts up properly in the background.

Is "make install" setting up an environment variable or something that I'm missing out on?

Change History (9)

comment:1 Changed 10 years ago by jbirch

Component: GeneralServer

comment:2 Changed 10 years ago by jbirch

Owner: set to timstrang

comment:3 Changed 8 years ago by jbirch

Resolution: wontfix
Status: newclosed

I'm closing this myself because it's not a configuration I have been able to test against anyway.

comment:4 Changed 3 years ago by jng

Resolution: wontfix
Status: closedreopened

comment:5 Changed 3 years ago by jng

Owner: changed from timstrang to jng
Status: reopenednew

comment:6 Changed 3 years ago by jng

This is happening on Ubuntu.

comment:7 Changed 3 years ago by jng

The /var/lock/mgserver directory must exist or daemon-ization fails on Ubuntu.

comment:8 Changed 3 years ago by jng

That directory is cleared on reboot, but nothing re-creates it. The fix is to create /var/lock/mgserver if it doesn't already exist in mgserverd.sh

comment:9 Changed 3 years ago by jng

Resolution: fixed
Status: newclosed

Fixed r8423

Note: See TracTickets for help on using tickets.