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 | |
# app-name daemon | |
# chkconfig: 345 20 80 | |
# description: app-name daemon | |
# processname: process_name | |
# This init.d script makes twp assumptions | |
# 1) The script is run by root. Only root has the rights to su to the RUNTIME_USER. | |
# 2) The RUNTIME_USER a system user. Any user should work, so long as they have permissions to the project files. |