void-packages/srcpkgs/zabbix/files/zabbix-server/run

7 lines
214 B
Bash
Executable File

#!/bin/sh
exec 2>&1
sv start mysqld >/dev/null || exit 1
install -d -m0750 -o _zabbix_server -g _zabbix_server /run/zabbix-server
chpst -u _zabbix_server:_zabbix_server zabbix_server -f -c /etc/zabbix_server.conf