Skip to content

Instantly share code, notes, and snippets.

View mtsoleimani's full-sized avatar
🚀

Mohammad Taqi Soleimani mtsoleimani

🚀
View GitHub Profile
@mtsoleimani
mtsoleimani / initd_nodejs
Created December 18, 2018 07:19
Init.d and Start Script for Nodejs based service. It uses pid file and checks process if exists
#!/bin/sh
# init.d script with LSB support.
### BEGIN INIT INFO
# Provides: NODEJS_APP_NAME
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop:
# Should-Start: $named
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@mtsoleimani
mtsoleimani / initd_java
Last active May 14, 2024 14:03
Init.d and Start Script for java based service. It uses pid file and checks process if exists
#!/bin/sh
# init.d script with LSB support.
### BEGIN INIT INFO
# Provides: SERVICE_NAME
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop:
# Should-Start: $named
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6