On Tue, Dec 29, 2015 at 5:23 PM, Joseph L. Casale <jcasale at activenetwerx.com> wrote:> Instead of converting the sysv script, you could trivially write your own, > the following > was tested against about 6 SNMP queries, the service stops and starts as > expected. >That's certainly an option. One that I was prepared to resort to. But curiosity has the best of me ... I would like to know why the SysV generator didn't do its job. And I wasn't able to find any "generated" unit files from those Dell OpenManage SysV scripts either.> You may want to purge the sysv remnants. > > # cat /etc/systemd/system/lsi_mrdsnmpd.service > [Unit] > Description=LSI SNMP Agent startup/shutdown script > > Requires=network.target > Requires=snmpd.service > > After=network.target > After=snmpd.service > > > [Service] > Type=forking > ExecStart=/etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf > > [Install] > WantedBy=multi-user.target > > hth, > jlcI appreciate the effort. You took some of the fun out of it for me ... less for me to write. :-) -- ---~~.~~--- Mike // SilverTip257 //
On 30 Dec 2015 00:55, "Mike - st257" <silvertip257 at gmail.com> wrote:> > On Tue, Dec 29, 2015 at 5:23 PM, Joseph L. Casale <jcasale at activenetwerx.com> > wrote: > > > Instead of converting the sysv script, you could trivially write yourown,> > the following > > was tested against about 6 SNMP queries, the service stops and starts as > > expected. > > > > That's certainly an option. > One that I was prepared to resort to. But curiosity has the best of me ... > I would like to know why the SysV generator didn't do its job. > > And I wasn't able to find any "generated" unit files from those Dell > OpenManage SysV scripts either. > >The generators all run automatically when systemd reloads config. The transient unit files created are in /var/run ... Best way to see this is using systemctl (status|cat|show) <servicename> ... I expect if you do this for your failing service you'll get a better understanding of what's going on.
Consolidating my reply to both James and Gordon in one message. On Wed, Dec 30, 2015 at 2:38 AM, James Hogarth <james.hogarth at gmail.com> wrote:> On 30 Dec 2015 00:55, "Mike - st257" <silvertip257 at gmail.com> wrote: > > > > On Tue, Dec 29, 2015 at 5:23 PM, Joseph L. Casale < > jcasale at activenetwerx.com > > > wrote: > > > > > Instead of converting the sysv script, you could trivially write your > own, > > > the following > > > was tested against about 6 SNMP queries, the service stops and starts > as > > > expected. > > > > > > > That's certainly an option. > > One that I was prepared to resort to. But curiosity has the best of me > ... > > I would like to know why the SysV generator didn't do its job. > > > > And I wasn't able to find any "generated" unit files from those Dell > > OpenManage SysV scripts either. > > > > > > The generators all run automatically when systemd reloads config. > > The transient unit files created are in /var/run ... >Thanks. I located a few generated ones in /var/run/systemd/generator.late/ But not one for lsi_mrdsnmpagent> Best way to see this is using systemctl (status|cat|show) <servicename> ... > > I expect if you do this for your failing service you'll get a better > understanding of what's going on.~]# systemctl status lsi_mrdsnmp.service ? lsi_mrdsnmp.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) ~]# systemctl cat lsi_mrdsnmp.service Unit lsi_mrdsnmp.service is not loaded: No such file or directory ~]# systemctl show lsi_mrdsnmp.service | egrep 'Name|Load' Names=lsi_mrdsnmp.service LoadState=not-found LoadError=org.freedesktop.DBus.Error.FileNotFound "No such file or directory" Thanks for the assistance. -- ---~~.~~--- Mike // SilverTip257 //