File: common-functions.init

package info (click to toggle)
bacula 9.6.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 24,764 kB
  • sloc: ansic: 157,001; cpp: 28,065; sh: 25,044; makefile: 4,385; perl: 3,433; sql: 1,371; python: 125; xml: 64; awk: 51; sed: 25
file content (12 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#  -*-shell-script-*-
#
# Common functions, used from init scripts
#

create_run_dir()
{
	if [ ! -d /run/bacula/ ]; then
		mkdir -p -m 0755 /run/bacula/
		chown bacula:daemon /run/bacula/
	fi
}