Commit f9c5f7d7 authored by Andreas Kempe's avatar Andreas Kempe
Browse files

FreeBSD startup script example.

parent d5a77158
#!/bin/sh
# Start script for a single uWSGI service. Modify socket, wsgi-file
# and the logfile given to daemonize2 per script. Changing the name
# might also be a good idea.
. /etc/rc.subr
name=uwsgi_generate_named_config
rcvar=uwsgi_generate_named_config_enable
command="/usr/local/bin/uwsgi"
command_args="--socket /tmp/hugo.socket --wsgi-file /home/kempe/test.py --uid 80 --gid 80 --daemonize2 /var/log/uwsgi/test.log"
load_rc_config $name
run_rc_command "$1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment