app-text/dictd does not have a service file for systemd Reproducible: Always Steps to Reproduce: 1. Install dictd 2. 3. Actual Results: There is not service file to start the server
Created attachment 362146 [details] proposed service file for dictd on systemd I have not previous experience creating service files for systemd but it seems to work well in my system
I cannot even start dictd (1.12.1) :S # /usr/sbin/dictd /etc/dict/dictd.conf:22: syntax error, unexpected $end /etc/dict/dictd.conf:22: #LASTLINE /etc/dict/dictd.conf:22: ^ dictd (yyerror): parse error parse error
Created attachment 362160 [details] dictd.service
(In reply to Pacho Ramos from comment #2) > I cannot even start dictd (1.12.1) :S You need to add at least one dictionary.
I installed app-dicts/dictd-dicts as suggested by ebuild :/
(In reply to Pacho Ramos from comment #5) > I installed app-dicts/dictd-dicts as suggested by ebuild :/ Init script automatically adds all installed dictionaries to config. Yeah, that's horrible. :)
Bleh :( Not sure how to deal with it then (I haven't seen any clue on fedora and arch), maybe moving the conf updating to "config()"? Move it to a script we run before start?
(In reply to Pacho Ramos from comment #7) > Move it to a script we run before start? IMHO config generation shouldn't be a part of service startup process.
I don't have a strong opinion :/, probably the info pointing people to configure it could be included in ebuild and that would be enough
Created attachment 362350 [details] new dictd service file Added restart and read options on the default dictd configuration file (/etc/conf.d/dictd)
(In reply to Pacho Ramos from comment #9) > I don't have a strong opinion :/, probably the info pointing people to > configure it could be included in ebuild and that would be enough Do you know any example about the kind of instructions we should show to tell people how to add dicts to their configs? Thanks
May be install some examples and tell people to read them? # pwd /var/tmp/portage/app-text/dictd-1.12.1/work/dictd-1.12.1/examples # ls -1 dictd* dictd1.conf dictd2.conf dictd3.conf dictd4.conf dictd_complex.conf dictd_mime.conf dictd_plugin_dbi.conf dictd_popen.conf.in dictd_site.txt dictd_virtual.conf "dictd1.conf" is the most basic example, and openrc script populates config using the same format.
+*dictd-1.12.1-r1 (12 Nov 2013) + + 12 Nov 2013; Pacho Ramos <pacho@gentoo.org> +dictd-1.12.1-r1.ebuild, + +files/dictd.service, -dictd-1.11.1-r1.ebuild, -dictd-1.12.0.ebuild, + files/1.10.11/dictd.conf: + Add unit file (#489666 by Juan and Alexander Tsoy), drop old. +