summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cc9df88)
"graceful" is removed because SIGQUIT is gone.
"reload" use SIGHUP.
"condrestart" is added because spec file requires it.
alternative path for the netatalk lockfile.
* UPD: systemd service file use PIDFile and ExecReload.
From FR #70.
alternative path for the netatalk lockfile.
* UPD: systemd service file use PIDFile and ExecReload.
From FR #70.
+* UPD: RedHat sysvinit: rm graceful, reimplement reload, add condrestart
* FIX: Couldn't create folders on FreeBSD 9.1 ZFS fileystems.
Fixed bug #491.
* FIX: Couldn't create folders on FreeBSD 9.1 ZFS fileystems.
Fixed bug #491.
netatalk_startup() {
# Check that networking is up.
if [ ${NETWORKING} = "no" ]; then
netatalk_startup() {
# Check that networking is up.
if [ ${NETWORKING} = "no" ]; then
- echo "[Network isn't started]";
+ echo "[Network isn't started]";
-# code to cause apfd and cnid_metad to restart
-netatalk_graceful() {
+# restart code
+netatalk_restart() {
+ netatalk_stop
+ netatalk_startup
+}
+
+# reload config files
+netatalk_reload() {
if [ -x ${NETATALK_SBIN}/netatalk ]; then
if [ -x ${NETATALK_SBIN}/netatalk ]; then
- echo -n $"Restarting cnid_metad and afpd: "
- killproc netatalk -QUIT
+ echo -n $"Reloading $prog: "
+ killproc netatalk -HUP
- 'restart'|'reload')
- $0 stop
- $0 start
- RETVAL=$?
+ 'restart')
+ netatalk_restart
+ ;;
+ 'reload'|'graceful')
+ netatalk_reload
;;
'status')
status netatalk
RETVAL=$?
;;
;;
'status')
status netatalk
RETVAL=$?
;;
- 'graceful')
- netatalk_graceful
+ 'condrestart')
+ [ -f /var/lock/subsys/netatalk ] && netatalk_restart || :
- echo "Usage: $0 {start|stop|restart|reload|status|graceful}"
+ echo "Usage: $0 {start|stop|restart|reload|status|condrestart}"