[illumos-Developer] webrev: 846 svccfg -f line numbers should count from 1 not 0
Garrett D'Amore
garrett at damore.org
Sat Jun 4 08:00:47 PDT 2011
Seems a bit ... byzantine to do it this way, but it works, and is a small low risk change, so I think its ok even if a bit awkward.
-- Garrett D'Amore
On Jun 4, 2011, at 5:12 PM, Yuri Pankov <yuri.pankov at gmail.com> wrote:
> Hi,
>
> https://www.xvoid.org/illumos/webrev/846-svccfg/
>
> semerr.scf:
> junk
>
> synerr.scf:
> select pkg/server
> add nightly-debug
> select pkg/server:nightly-debug
> addpg pkg application
> setprop pkg/port 8050
>
> $ /usr/sbin/svccfg -f semerr.scf
> svccfg (semerr.scf, line 1): Unknown command "junk".
> $ /usr/sbin/svccfg -f synerr.scf
> svccfg (synerr.scf, line 2): Permission denied.
> $ sudo /usr/sbin/svccfg -f synerr.scf
> svccfg (synerr.scf, line 4): Syntax error.
>
> $ ws/846-svccfg/usr/src/cmd/svc/svccfg/svccfg -f semerr.scf
> svccfg (semerr.scf, line 1): Unknown command "junk".
> $ ws/846-svccfg/usr/src/cmd/svc/svccfg/svccfg -f synerr.scf
> svccfg (synerr.scf, line 2): Permission denied.
> $ sudo ws/846-svccfg/usr/src/cmd/svc/svccfg/svccfg -f synerr.scf
> svccfg (synerr.scf, line 5): Syntax error.
>
> $ sed -ne '2p;4p;5p' ~/synerr.scf
> add nightly-debug
> addpg pkg application
> setprop pkg/port 8050
>
>
> TIA,
> Yuri
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer
More information about the Developer
mailing list