Comments (3)
Hmm - I haven't - it shouldn't be too hard though, especially if you're using something like foreman
from haste-server.
I found some initscript here that I edited for a Debian host (I've not done an Arch Linux initscrip yet).
#!/bin/bash
### BEGIN INIT INFO
# Provides: hastebin
# Required-Start: $local_fs $remote_fs $network $syslog $redis_server
# Required-Stop: $local_fs $remote_fs $network $syslog $redis_server
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts hastebin
# Description: starts hastebin
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/opt/node/bin # modify if you need
DAEMON_ARGS="/home/hastebin/haste-server/server.js" # path to your node.js server/app
DESC="node.js pastebin server" # whatever fancy description you like
NODEUSER=hastebin:hastebin # USER who OWNS the daemon process (no matter whoever runs the init script)
LOCAL_VAR_RUN=/var/run # in case the init script is run by non-root user, you need to
NAME=node # name of the node.js executable
DAEMON=/opt/node/bin/$NAME # this SHOULD POINT TO where your node executable is
(...)
Then :
~ # update-rc.d hastebin defaults
It's working like a charm for months now.
from haste-server.
@postblue any chance you can add this as a wiki page?
from haste-server.
Related Issues (20)
- Hastebin IPFS Support HOT 2
- Disable automatic closing of issues HOT 1
- self-hosted instace, buttons greyed out
- nginx config need help please HOT 1
- alpine image HOT 2
- Tried to host haste-server on a Plesk webspace, error occured HOT 2
- 503 error while post in /documents HOT 2
- daemonize haste-server HOT 3
- Important announcement: Soon a new version of Hastebin will be launched! HOT 15
- bun
- Haste server sends 413 for requests over 1mb
- Release containers in a public repo HOT 5
- Authentication failed (MongoDB) HOT 2
- pastebin HOT 1
- 1. Remove deprecation warning from existing trading-api hybrid websocket endpoint. HOT 3
- this lost almost all of the reasons why it was any good in the refactor. HOT 2
- zipped files too large failing to be retrieved with raw HOT 5
- Helloworld HOT 3
- Unable to use file as storage method in docker HOT 2
- Insecure default: phonetic alphabet with keyLength=10 is brute-forcible HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haste-server.