File: init.d

package info (click to toggle)
fidogate 4.4.7-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,784 kB
  • ctags: 2,957
  • sloc: ansic: 24,413; perl: 4,932; makefile: 885; sh: 824; yacc: 662; tcl: 415
file content (29 lines) | stat: -rw-r--r-- 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# FIDOGATE boot cleanup
#

SPOOL=/var/spool/fido

case "$1" in
    start)
	echo "Cleaning up FIDOGATE lock files."
	# Remove lock files
	rm -f $SPOOL/locks/*

	# Remove .tmp files
	rm -f $SPOOL/out/*.tmp
	rm -f $SPOOL/toss/*/*.tmp

	;;
	# All the rest are dummy options.
    stop|reload|force-reload|restart)
	;;
    *)
	echo "Usage: /etc/init.d/fidogate {start|stop|reload|restart}"
	exit 1
	;;
esac

exit 0