Re: Systemd and systemd-sysv-generator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 30 December 2015 at 14:23, Mike - st257 <silvertip257@xxxxxxxxx> wrote:

> Consolidating my reply to both James and Gordon in one message.
>
>
> On Wed, Dec 30, 2015 at 2:38 AM, James Hogarth <james.hogarth@xxxxxxxxx>
> wrote:
>
> > On 30 Dec 2015 00:55, "Mike - st257" <silvertip257@xxxxxxxxx> wrote:
> > >
> > > On Tue, Dec 29, 2015 at 5:23 PM, Joseph L. Casale <
> > jcasale@xxxxxxxxxxxxxxxxx
> > > > 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"
>
>
>
Can you pastebin the init script by any chance? I wonder if it's actually a
properly written init script or if it's bad enough  that the generator
fails to parse it ...
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux