/etc/init.d/fs2ram is in fs2ram 0.3.12.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #! /bin/sh
### BEGIN INIT INFO
# Provides: fs2ram
# Required-Start: mountall
# Required-Stop: umountfs
# X-Start-Before: mountall-bootclean
# X-Stop-After: rsyslog syslog-ng umountnfs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: mount/unmount mountpoints handled by fs2ram.
# Description: mount/unmount mountpoints handled by fs2ram. This include
# executing unmount/mount scripts for each handled
# mountpoints
### END INIT INFO
. /lib/lsb/init-functions
. /lib/init/fs2ram-functions.sh
PATH=/sbin:/bin
NAME=fs2ram
DESC=fs2ram
set -e
case "$1" in
start)
log_action_begin_msg "fs2ram: mount and execute the mount script for each handled mountpoints"
fs2ram mount -a -q
log_action_end_msg $?
;;
stop)
log_action_begin_msg "fs2ram: execute the unmount script and unmount for each handled mountpoints"
fs2ram unmount -a -q
log_action_end_msg $?
;;
restart|force-reload)
# You probably don't want to do that before closing all the files opened on the concerned mountpoints
echo "Error: argument '$1' not supported." >&2
exit 3
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N [start|stop]" >&2
exit 3
;;
esac
exit 0
|