File: munin.munin-tmpfiles.init

package info (click to toggle)
munin 2.999.14-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,036 kB
  • sloc: perl: 31,052; sh: 12,473; java: 1,924; python: 852; makefile: 336; ruby: 232; awk: 169; xml: 45; sql: 11
file content (37 lines) | stat: -rwxr-xr-x 1,105 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
30
31
32
33
34
35
36
37
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides:          munin-tmpfiles
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Munin Temporary Files
# Description:       Networked resource monitoring tool.
#                    Create directories required for Munin's cron jobs
#                    and munin-rrdcached.
### END INIT INFO


# systemd creates the necessary directories (see /usr/lib/tmpfiles.d/munin.conf)
test -d /run/systemd/system && exit 0


DESC="munin (tmpfiles)"
NAME="munin-tmpfiles"
# it is not used directly - just as an indicator for the package being installed
DAEMON="/usr/bin/munin-update"


# keep in sync with debian/munin.tmpfile (systemd-only)
do_start_cmd_override() {
	mkdir --mode=0755 -p /run/munin
	chown munin.munin /run/munin
}


# nothing to be done
do_stop_cmd_override() { true; }