2018-04-15 13:35:39 +00:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
command=/usr/bin/mattermost
|
|
|
|
command_args="-c /etc/mattermost.json"
|
|
|
|
pidfile=/var/run/mattermost/mattermost.pid
|
|
|
|
start_stop_daemon_args="--make-pidfile --background --user nobody --group nobody --chdir /usr/share/webapps/mattermost/"
|
|
|
|
|
|
|
|
depend() {
|
2018-05-24 17:44:38 +00:00
|
|
|
need localmount net mysql
|
2018-04-15 13:35:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
start_pre() {
|
|
|
|
checkpath -d -m 0750 -o nobody:nobody /var/run/mattermost/ /var/lib/mattermost/
|
|
|
|
}
|