diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2016-03-08 22:08:53 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-03-08 22:12:24 +0000 |
commit | 8948883cae0640d6b6302eda3fc0d28654287831 (patch) | |
tree | d763641ce4c98415ac2a041bdd72610830b7e6eb /sys-process/atop | |
parent | dev-ruby/chronic: Remove ruby19 (diff) | |
parent | sys-process/atop: systemd support (diff) | |
download | gentoo-8948883cae0640d6b6302eda3fc0d28654287831.tar.gz gentoo-8948883cae0640d6b6302eda3fc0d28654287831.tar.bz2 gentoo-8948883cae0640d6b6302eda3fc0d28654287831.zip |
Merge github#363: sys-process/atop: add systemd support
This PR allows users to install systemd unit files with atop.
Pull-Request: https://github.com/gentoo/gentoo/pull/363
Gentoo-Bug: https://bugs.gentoo.org/553310
Reporter: Denis Romanchuk <den4ikkss@gmail.com>
Acked-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'sys-process/atop')
-rw-r--r-- | sys-process/atop/atop-2.2.ebuild | 4 | ||||
-rw-r--r-- | sys-process/atop/files/atop.service | 11 | ||||
-rw-r--r-- | sys-process/atop/files/atopacct.service | 14 |
3 files changed, 28 insertions, 1 deletions
diff --git a/sys-process/atop/atop-2.2.ebuild b/sys-process/atop/atop-2.2.ebuild index baa583b9bbf0..7283c207b5d7 100644 --- a/sys-process/atop/atop-2.2.ebuild +++ b/sys-process/atop/atop-2.2.ebuild @@ -4,7 +4,7 @@ EAPI="4" -inherit eutils toolchain-funcs +inherit eutils toolchain-funcs systemd MY_PV=${PV//_p/-} MY_P=${PN}-${MY_PV}-3 @@ -43,5 +43,7 @@ src_install() { rm -f "${ED}"/usr/bin/atop*-${MY_PV} newinitd "${FILESDIR}"/${PN}.rc-r1 ${PN} newinitd "${FILESDIR}"/atopacct.rc atopacct + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_dounit "${FILESDIR}"/atopacct.service dodoc atop.cronsysv AUTHOR ChangeLog README } diff --git a/sys-process/atop/files/atop.service b/sys-process/atop/files/atop.service new file mode 100644 index 000000000000..09295b9acd12 --- /dev/null +++ b/sys-process/atop/files/atop.service @@ -0,0 +1,11 @@ +[Unit] +Description=Atop advanced performance monitor +Documentation=man:atop(1) + +[Service] +Type=simple +ExecStart=/etc/atop/atop.daily +KillSignal=SIGUSR2 + +[Install] +WantedBy=multi-user.target diff --git a/sys-process/atop/files/atopacct.service b/sys-process/atop/files/atopacct.service new file mode 100644 index 000000000000..1f51ec41916a --- /dev/null +++ b/sys-process/atop/files/atopacct.service @@ -0,0 +1,14 @@ +[Unit] +Description=Atop process accounting daemon +Documentation=man:atopacctd(8) +Conflicts=psacct.service +After=syslog.target +Before=atop.service + +[Service] +Type=forking +PIDFile=/var/run/atopacctd.pid +ExecStart=/usr/sbin/atopacctd + +[Install] +WantedBy=multi-user.target |