projects/aports·blob master · refs

24 lines · 573 B

1#!/sbin/openrc-run
2# Copyright 1999-2020 Gentoo Authors
3# Distributed under the terms of the GNU General Public License v2
4
5description="libvirt virtual machine logging manager"
6command="/usr/sbin/virtlogd"
7start_stop_daemon_args="-b"
8pidfile="/run/virtlogd.pid"
9
10extra_started_commands="reload"
11description_reload="re-exec the daemon, while maintaining open connections"
12
13
14depend() {
15 after ntp-client ntpd nfs nfsmount corosync
16}
17
18reload() {
19 ebegin "re-exec() virtlogd"
20
21 start-stop-daemon --signal SIGUSR1 \
22 --exec "${command}" --pidfile "${pidfile}"
23}
24