Skip to content

Instantly share code, notes, and snippets.

View Kevinwzm's full-sized avatar

Kevin Wen Kevinwzm

  • Beijing Tianqiao Technology Co., Ltd.
  • BeiJing
  • 01:41 (UTC -12:00)
View GitHub Profile
@Kevinwzm
Kevinwzm / start-stop-example.sh
Created June 6, 2018 04:48 — forked from alobato/start-stop-example.sh
start-stop-example
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar