Bug 25461 - add systemd support
Summary: add systemd support
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: acpid (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Valery Inozemtsev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 20:43 MSK by Alexey Shabalin
Modified: 2019-05-21 17:35 MSK (History)
3 users (show)

See Also:


Attachments
acpid.service (219 bytes, text/plain)
2011-04-18 20:43 MSK, Alexey Shabalin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shabalin 2011-04-18 20:43:36 MSK
Created attachment 4899 [details]
acpid.service

Прошу упаковать service файл для acpid.
в spec надо добавить примерно следующее:

Source10: acpid.service

install -pD -m644 %SOURCE10
%buildroot%systemd_unitdir/acpid.service

в %files добавить
%systemd_unitdir/acpid.service

acpid.service в атаче.
Comment 1 Repository Robot 2011-04-18 21:00:54 MSK
acpid-1:2.0.9-alt1 -> sisyphus:

* Mon Apr 18 2011 Valery Inozemtsev <shrek@altlinux> 1:2.0.9-alt1
- 2.0.9
- added systemd support (closes: #25461)
Comment 2 Alexey Shabalin 2014-09-16 22:08:26 MSK
прошу обновить поддержку systemd.
надо сделать следующее:

в acpid.service:
[Install]
WantedBy=multi-user.target
+Also=acpid.socket

[Unit]
Description=ACPI Event Daemon
+Documentation=man:acpid(8)
-After=syslog.target
+Requires=acpid.socket

[Service]
EnvironmentFile=/etc/sysconfig/acpid
ExecStart=/usr/sbin/acpid -f $ACPID_ARGS
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
+Also=acpid.socket

и добавить
acpid.socket:

[Unit]
Description=ACPID Listen Socket
Documentation=man:acpid(8)

[Socket]
ListenStream=/var/run/acpid.socket

[Install]
WantedBy=sockets.target
Comment 3 Vladimir D. Seleznev 2019-05-21 17:35:41 MSK
Done in 2.0.31-alt1:

https://lists.altlinux.org/pipermail/sisyphus-incominger/2019-May/530575.html