File: prerm

package info (click to toggle)
jhcore 1.8.0-7
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 1,924 kB
  • sloc: perl: 106; makefile: 34; sh: 13
file content (14 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

update-alternatives --quiet --remove moo.db /var/lib/lambdamoo/jhcore.db

[ -x /etc/init.d/lambdamoo ] || exit 0

# Check to see if the server is currently running this database.
if [ -e /var/run/lambdamoo.pid -a \
	"`cat /var/run/lambdamoo.db 2>/dev/null`" = \
	"/var/lib/lambdamoo/jhcore.db" -a -x /etc/init.d/lambdamoo ]
then
	/etc/init.d/lambdamoo stop
	/etc/init.d/lambdamoo start
fi