slackware-current/source/n/netatalk/rc.atalk.new
Patrick J Volkerding 63f56cc135 Wed Jun 27 04:13:25 UTC 2018
a/kernel-generic-4.14.52-x86_64-1.txz:  Upgraded.
a/kernel-huge-4.14.52-x86_64-1.txz:  Upgraded.
a/kernel-modules-4.14.52-x86_64-1.txz:  Upgraded.
ap/sox-14.4.2-x86_64-6.txz:  Rebuilt.
  Rebuilt to drop libssp dependency. We're no longer building that with gcc
  since glibc already includes a built-in SSP implementation.
d/gcc-8.1.1-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
  This is taken from the gcc-8-branch of the svn repo on 20180626, revision
  r262159. All packages have been tested for build failures and all new FTBFS
  issues are fixed - I think we're down to the six possibly obsolete X drivers
  (geode, r128, s3virge, savage, sis, and tseng) and virtuoso-ose.
d/gcc-brig-8.1.1-x86_64-1.txz:  Upgraded.
d/gcc-g++-8.1.1-x86_64-1.txz:  Upgraded.
d/gcc-gfortran-8.1.1-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
d/gcc-gnat-8.1.1-x86_64-1.txz:  Upgraded.
d/gcc-go-8.1.1-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
d/gcc-objc-8.1.1-x86_64-1.txz:  Upgraded.
d/kernel-headers-4.14.52-x86-1.txz:  Upgraded.
d/libtool-2.4.6-x86_64-8.txz:  Rebuilt.
  Recompiled to update embedded GCC version number.
k/kernel-source-4.14.52-noarch-1.txz:  Upgraded.
l/db48-4.8.30-x86_64-4.txz:  Rebuilt.
  Patched to fix a symbol collision with gcc8.
n/netatalk-3.1.11-x86_64-1.txz:  Upgraded.
  Thanks to Matthew Schumacher for updating the build script and providing
  some useful config file examples.
extra/pure-alsa-system/sox-14.4.2-x86_64-6_alsa.txz:  Rebuilt.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2018-06-27 21:00:55 +02:00

58 lines
1,007 B
Bash

#!/bin/sh
# Start/stop/restart the netatalk daemon.
netatalk_start() {
if [ -x /usr/sbin/netatalk ]; then
LINES="$(grep "^[^;]" /etc/netatalk/afp.conf | wc -l)"
if [ "$LINES" -lt "2" ]; then
echo "netatalk is not configured.... exiting."
exit
fi
echo "Starting netatalk: /usr/sbin/netatalk"
/usr/sbin/netatalk
fi
}
# Stop netatalk
netatalk_stop() {
echo "Stopping netatalk."
/usr/bin/pkill --ns $$ -f "^/usr/sbin/netatalk" 2> /dev/null
}
# Restart netatalk
netatalk_restart() {
netatalk_stop
sleep 1
netatalk_start
}
# Check if netatalk is running
netatalk_status() {
PID="$(/usr/bin/pgrep --ns $$ -f "^/usr/sbin/netatalk" 2> dev/null)
if [ $PID ]; then
echo "netatalk is running. PID: $PID"
else
echo "netatalk is stopped."
exit 1
fi
}
case "$1" in
'start')
netatalk_start
;;
'stop')
netatalk_stop
;;
'restart')
netatalk_restart
;;
'status')
netatalk_status
;;
*)
echo "usage $0 start|stop|restart|status"
esac