everywhere: remove -ce suffix
This commit is contained in:
28
etc/bsd-rc/commento
Executable file
28
etc/bsd-rc/commento
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: commento
|
||||
# REQUIRE: LOGIN postgresql
|
||||
# KEYWORD: shutdown
|
||||
|
||||
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
desc="Commento daemon"
|
||||
name=commento
|
||||
rcvar=commento_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${commento_enable:=NO}
|
||||
|
||||
commento_env="COMMENTO_ORIGIN=https://commento.example.com \
|
||||
COMMENTO_PORT=8080 \
|
||||
COMMENTO_POSTGRES=postgres://commento:commento@db:5432/commento?sslmode=disable \
|
||||
COMMENTO_STATIC=/usr/local/share/commento"
|
||||
commento_user=www
|
||||
|
||||
command="/usr/local/bin/commento"
|
||||
command_args=" >> /var/log/commento/${name}.log 2>&1 &"
|
||||
|
||||
run_rc_command "$1"
|
@@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: commento_ce
|
||||
# REQUIRE: LOGIN postgresql
|
||||
# KEYWORD: shutdown
|
||||
|
||||
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
desc="Commento CE daemon"
|
||||
name=commento_ce
|
||||
rcvar=commento_ce_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${commento_ce_enable:=NO}
|
||||
|
||||
commento_ce_env="COMMENTO_ORIGIN=https://commento.example.com \
|
||||
COMMENTO_PORT=8080 \
|
||||
COMMENTO_POSTGRES=postgres://commento:commento@db:5432/commento?sslmode=disable \
|
||||
COMMENTO_STATIC=/usr/local/share/commento-ce"
|
||||
commento_ce_user=www
|
||||
|
||||
command="/usr/local/bin/commento-ce"
|
||||
command_args=" >> /var/log/commento_ce/${name}.log 2>&1 &"
|
||||
|
||||
run_rc_command "$1"
|
@@ -1,14 +1,14 @@
|
||||
[Unit]
|
||||
Description=Commento-CE daemon service
|
||||
Description=Commento daemon service
|
||||
After=network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/commento-ce
|
||||
ExecStart=/usr/bin/commento
|
||||
Environment=COMMENTO_ORIGIN=https://commento.example.com
|
||||
Environment=COMMENTO_PORT=8080
|
||||
Environment=COMMENTO_POSTGRES=postgres://commento:commento@db:5432/commento?sslmode=disable
|
||||
Environment=COMMENTO_STATIC=/usr/share/commento-ce
|
||||
Environment=COMMENTO_STATIC=/usr/share/commento
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user