NOTE: I am unsure of how stable this is. Please proceed with caution. Also coming in: * sysutils/bacula13-client * sysutils/bacula13-docs * net-mgmt/nagios-check_bacula13 Not present yet: sysutils/bacula13-client-static because of unknown build issues.
14 lines
354 B
Bash
14 lines
354 B
Bash
#!/bin/sh
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
|
|
# Always add lines in /etc/services
|
|
grep -q "bacula-dir" /etc/services
|
|
if [ "$?" != "0" ]; then
|
|
echo "# Bacula port start
|
|
bacula-dir 9101/tcp #Bacula director daemon
|
|
bacula-fd 9102/tcp #Bacula file daemon
|
|
bacula-sd 9103/tcp #Bacula storage daemon
|
|
# Bacula port end" >> /etc/services
|
|
fi
|