Bug 25119 - add systemd support
Summary: add systemd support
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: avahi (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Sergey Bolshakov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 17:00 MSK by Alexey Shabalin
Modified: 2011-02-21 18:12 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shabalin 2011-02-18 17:00:16 MSK
Прошу упаковать service файл для systemd.
(по аналогии с udev,dbus или ConsoleKit)
Comment 1 Sergey Bolshakov 2011-02-18 17:08:41 MSK
предполагается, что мне следует поискать в других пакетах, что же
имеется ввиду ? врядли.
Comment 2 Sergey Bolshakov 2011-02-21 16:40:30 MSK
fixed in avahi-0.6.28-alt5
Comment 3 Alexey Shabalin 2011-02-21 17:58:04 MSK
Спасибо. Нашли же :)
А если серьёзно, то следующий вопрос.
Через init-скрипты avahi-daemon запускается от пользователя _avahi. Насколько я понял, altlinux единственный, кто так запускает. В сервис-файле для systemd нет никакого указания, от кого запускать avahi-daemon, поэтому он будет запушен от root.
Надо ли запускать от _avahi? если да, то в service файл надо добавить:

User=, Group=
Sets the Unix user resp. group the processes are executed as. Takes a single user resp. group name or ID as argument. If no group is set the default group of the user is chosen.

SupplementaryGroups=
Sets the supplementary Unix groups the processes are executed as. This takes a space separated list of group names or IDs. This option may be specified more than once in which case all listed groups are set as supplementary groups. This option does not override but extends the list of supplementary groups configured in the system group database for the user.

И возможно, предложить апстриму.
Comment 4 Sergey Bolshakov 2011-02-21 18:12:50 MSK
> Нашли же
указание пальцем на нужный коммит не оставляет места для ошибок

> Через init-скрипты avahi-daemon запускается от пользователя _avahi
нет, он запускается от рута и затем сам сбрасывается на _avahi.
Следует также иметь ввиду, что автор avahi и systemd (и pulseaudio заодно) --
один и тот же человек.