Bug 25119

Summary: add systemd support
Product: Sisyphus Reporter: Alexey Shabalin <shaba>
Component: avahiAssignee: Sergey Bolshakov <sbolshakov>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: aen, icesik, radik, sbolshakov, shaba
Version: unstable   
Hardware: all   
OS: Linux   

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 заодно) --
один и тот же человек.