Ticket #118 (closed Defect: fixed)

Opened 9 years ago

Last modified 6 years ago

DEB: DeepaMehta will not start after reboot

Reported by: JuergeN Owned by: silke
Priority: Major Milestone:
Component: DeepaMehta Standard Distribution Version: 4.0.4
Keywords: Cc:
Complexity: 3 Area:
Module:

Description

I have installed DeepaMehta on my Ubuntu 10.04 LTS with the newly provided debian package https://launchpad.net/~sil-ke/+archive/deepamehta/+files/deepamehta_4.0.5-2ubuntu1_all.deb .

After rebooting my machine, it will not start itself on boot and I cannot start deepamehta again. Error: Cannot create PID file ...

Change History

comment:1 Changed 9 years ago by JuergeN

Reason: After a reboot, the directory /var/run/deepamehta does not exist anymore, because /var/run is mounted as tmpfs on Ubuntu and empty after the next reboot. To fix this, I have changed the file /etc/init.d/deepamehta and added the following lines:

...
# Exit if the package is not installed
if [ ! -x "$DAEMON" ]; then 
    echo "$DAEMON not found"
    exit 0
fi

+ # create PID directory
+ if [ ! -d /var/run/$NAME ]; then
+     mkdir /var/run/$NAME
+     chown $NAME:$NAME /var/run/$NAME
+ fi

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
...

Now it works fine again!

Please apply these changes to the Debian Package.

Last edited 9 years ago by JuergeN (previous) (diff)

comment:2 Changed 9 years ago by JuergeN

  • Status changed from new to assigned
  • Owner changed from Silke to silke

comment:3 Changed 9 years ago by silke

  • Status changed from assigned to accepted

comment:4 Changed 9 years ago by silke

I applied and uploaded the changes to deepamehta - 4.0.5-2ubuntu2 on my ppa. Will be built and published for testing tomorrow. ;-)

comment:5 Changed 9 years ago by silke

  • Status changed from accepted to closed
  • Resolution set to fixed

OK, I tested this, DeepaMehta (installed from the .deb package) now starts automatically after reboot.

comment:6 Changed 6 years ago by jri

  • Milestone Build .deb Package deleted

Milestone Build .deb Package deleted

Note: See TracTickets for help on using tickets.