summaryrefslogtreecommitdiff
path: root/net/jotta-cli/files/jottad.in
blob: 847f5f736f14a407c06a9584a5d0639fc3a80552 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# PROVIDE: jottad
# REQUIRE: DAEMON FILESYSTEMS netif
# KEYWORD:

# Heavily copied from user gt2416 on the FreeNAS forums
# Thread: https://www.ixsystems.com/community/threads/jottacloud-install-guide.69086/

. /etc/rc.subr

name=jottad
jottad_user=jottad
rcvar=jottad_enable
command_args="datadir %%PREFIX%%/etc/jottad &"
command="%%PREFIX%%/sbin/${name}"

load_rc_config $name
run_rc_command "$1"