File: munin.init

package info (click to toggle)
munin 2.0.63-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,008 kB
  • sloc: perl: 11,644; java: 1,924; sh: 1,619; makefile: 636; javascript: 365; python: 267
file content (31 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/env /lib/init/init-d-script

### BEGIN INIT INFO
# Provides:          munin
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Start-Before:    cron
# Short-Description: Create munin master directories on boot
# Description:       Create munin master directories on boot. Munin itself runs as CGI or via cron and does not run a separate daemon.
### END INIT INFO

DESC="Preparing munin directories"
DAEMON=/usr/share/munin/munin-update
NAME=munin


# keep in sync with debian/munin-common.tmpfile (systemd-only)
do_start_prepare() {
    mkdir -p /run/munin /var/cache/munin/www
    chown munin /run/munin
    chown munin. /var/cache/munin/www
    chmod 755 /run/munin
    chmod 755 /var/cache/munin/www
}


# there is no process to be started or stopped ("munin-update" is executed via cron)
do_stop_cmd_override() { true; }
do_start_cmd_override() { true; }