ADDED postgres.service.mk Index: postgres.service.mk ================================================================== --- /dev/null +++ postgres.service.mk @@ -0,0 +1,11 @@ +DAEMON_postgres_COMMAND?=/usr/local/bin/pg_ctl +DAEMON_postgres_FLAGS?=-w -s -m fast -D ${DAEMON_postgres_DATA} +DAEMON_postgres_BACKGROUND?=start +DAEMON_postgres_USER?=postgres +DAEMON_postgres_GROUP?=postgres +DAEMON_postgres_DATA?=/var/db/postgres/data16 + +postgres: ${_SERVICE_PLAIN} + +postgres_exit: ${_SERVICE_PLAIN_EXIT} + $${CMD} stop ADDED syncthing.service.mk Index: syncthing.service.mk ================================================================== --- /dev/null +++ syncthing.service.mk @@ -0,0 +1,12 @@ +DAEMON_syncthing_COMMAND?=/usr/local/bin/syncthing +DAEMON_syncthing_FLAGS?=-home=${DAEMON_syncthing_HOME} -logfile=${DAEMON_syncthing_LOGFILE} --no-browser --no-default-folder --no-upgrade +DAEMON_syncthing_GROUP?=syncthing +DAEMON_syncthing_USER?=syncthing + +DAEMON_syncthing_HOME?=/usr/local/etc/syncthing +DAEMON_syncthing_LOGFILE?=/var/log/syncthing.log + +syncthing: ${_SERVICE} + install -d -o ${DAEMON_syncthing_USER} -g ${DAEMON_syncthing_GROUP} ${DAEMON_syncthing_HOME} + install -o ${DAEMON_syncthing_USER} -g ${DAEMON_syncthing_GROUP} /dev/null ${DAEMON_syncthing_LOGFILE} + export HOME=/ ADDED unbound.service.mk Index: unbound.service.mk ================================================================== --- /dev/null +++ unbound.service.mk @@ -0,0 +1,10 @@ +#DAEMON_unbound_ACHORFLAGS +DAEMON_unbound_COMMAND?=/usr/local/sbin/unbound +DAEMON_unbound_CONFIG=/usr/local/etc/unbound/unbound.conf +DAEMON_unbound_FLAGS?=-c ${DAEMON_unbound_CONFIG} +DAEMON_unbound_FOREGROUND?=-dp +#DAEMON_unbound_USER?=unbound + +unbound: ${_SERVICE} + su -m unbound -c "/usr/local/sbin/unbound-anchor ${DAEMON_unbound_ACHORFLAGS}" + /usr/local/sbin/unbound-checkconf ${DAEMON_unbound_CONFIG} >/dev/null