summaryrefslogtreecommitdiffstats
path: root/src/hooks
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2011-06-09 16:37:30 +0200
committerMiroslav Lichvar <mlichvar@redhat.com>2011-06-09 17:05:35 +0200
commitffbc6920a332db496dd633f3b7dec944c10d12bf (patch)
tree3dbfcf7f57928ba56835cecdc86cdf891bc5aeaf /src/hooks
parentaa851e935485de31e3c1008756fdd85deef5bb88 (diff)
downloadabrt-ffbc6920a332db496dd633f3b7dec944c10d12bf.tar.gz
abrt-ffbc6920a332db496dd633f3b7dec944c10d12bf.tar.xz
abrt-ffbc6920a332db496dd633f3b7dec944c10d12bf.zip
add abrt-ccpp systemd service (trac#288)
Diffstat (limited to 'src/hooks')
-rw-r--r--src/hooks/Makefile.am5
-rw-r--r--src/hooks/abrt-ccpp.service11
2 files changed, 16 insertions, 0 deletions
diff --git a/src/hooks/Makefile.am b/src/hooks/Makefile.am
index 49eddcf3..95cd3634 100644
--- a/src/hooks/Makefile.am
+++ b/src/hooks/Makefile.am
@@ -38,3 +38,8 @@ abrt_exception_handler.py:
# RPM fix: we need to regenerate abrt_exception_handler.py, because it has the default ddir
install-data-local:
sed s,\@VAR_RUN\@,\"$(VAR_RUN)\",g abrt_exception_handler.py.in > abrt_exception_handler.py
+
+if HAVE_SYSTEMD
+dist_systemdsystemunit_DATA = \
+ abrt-ccpp.service
+endif
diff --git a/src/hooks/abrt-ccpp.service b/src/hooks/abrt-ccpp.service
new file mode 100644
index 00000000..663322cb
--- /dev/null
+++ b/src/hooks/abrt-ccpp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Install ABRT coredump hook
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/abrt-install-ccpp-hook install
+ExecStop=/usr/sbin/abrt-install-ccpp-hook uninstall
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target