Files
macports-ports/news/leafnode/files/Restart_Texpire.command.in
2012-07-16 18:25:02 +00:00

29 lines
1.0 KiB
Bash
Executable File

#!/bin/zsh
############################################################## {{{1 ##########
# $Author$
# $Revision$
# $Date$
# $HeadURL$
############################################################## }}}1 ##########
setopt X_Trace;
if test "${USER}" = "root"; then
if test ! -L /Library/LaunchDaemons/org.macports.texpire.plist; then
ln -s \
@PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.texpire.plist \
/Library/LaunchDaemons/org.macports.texpire.plist ;
fi;
launchctl stop org.macports.texpire
launchctl unload -w /Library/LaunchDaemons/org.macports.texpire.plist
launchctl load -w /Library/LaunchDaemons/org.macports.texpire.plist
launchctl start org.macports.texpire
else
sudo ${0};
fi;
############################################################ {{{1 ###########
# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :