scrap init files
这个提交包含在:
父节点
aaebc5494e
当前提交
69ea7fa7c1
1
etc/holepunch.rc-local
普通文件
1
etc/holepunch.rc-local
普通文件
@ -0,0 +1 @@
|
|||||||
|
nohup /usr/local/bin/node /srv/holepunch/bin/service.js &
|
||||||
@ -1,5 +1,5 @@
|
|||||||
# https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx
|
# https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx
|
||||||
# goes in /etc/systemd/system/holepunch.service
|
# goes in /etc/systemd/system/multi-user.target.wants/holepunch.service
|
||||||
# systemctl enable holepunch
|
# systemctl enable holepunch
|
||||||
# systemctl start holepunch
|
# systemctl start holepunch
|
||||||
|
|
||||||
|
|||||||
19
etc/holepunch.upstart
普通文件
19
etc/holepunch.upstart
普通文件
@ -0,0 +1,19 @@
|
|||||||
|
# holepunch - keep connected
|
||||||
|
#
|
||||||
|
# The Holepunch Service provides nat traversal via upnp / pmp and ddns
|
||||||
|
|
||||||
|
description "Holepunch Service"
|
||||||
|
|
||||||
|
start on runlevel [2345]
|
||||||
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
|
respawn
|
||||||
|
respawn limit 10 5
|
||||||
|
umask 022
|
||||||
|
|
||||||
|
# 'sshd -D' leaks stderr and confuses things in conjunction with 'console log'
|
||||||
|
console none
|
||||||
|
|
||||||
|
# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
|
||||||
|
# 'exec' line here instead
|
||||||
|
exec /usr/local/bin/node /srv/holepunch/bin/service.js
|
||||||
正在加载...
x
在新工单中引用
屏蔽一个用户