Created
January 26, 2015 15:44
-
-
Save campanalbero/d9b2f93039e53c5f68b3 to your computer and use it in GitHub Desktop.
/etc/init.d/alfresco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# boot script for alfresco for Ubuntu 14.04 | |
ALFRESCO_HOME="/opt/alfresco" | |
case "$1" in | |
start) | |
sudo -u alfresco date >> ${ALFRESCO_HOME}/boot.log | |
sudo -u alfresco ${ALFRESCO_HOME}/alfresco.sh start 2>&1 >> ${ALFRESCO_HOME}/boot.log | |
;; | |
stop) | |
sudo -u alfresco date >> ${ALFRESCO_HOME}/boot.log | |
sudo -u alfresco ${ALFRESCO_HOME}/alfresco.sh stop 2>&1 >> ${ALFRESCO_HOME}/boot.log | |
;; | |
restart) | |
$0 stop | |
$0 start | |
;; | |
reload) | |
;; | |
*) | |
echo "Usage: $0 {start|stop|restart|reload|status}" | |
exit 1 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment