systemctl question

Richard Shaw hobbes1069 at gmail.com
Fri Apr 27 20:11:49 UTC 2012


On Fri, Apr 27, 2012 at 3:05 PM, Mike Wright <mike.wright at mailinator.com> wrote:
> Hi all,
>
> While trying to get vncserver working I found this within
>
>    /lib/systemd/system/vncserver at .service file.
>
>        /usr/bin/vncserver %i
>
> What is %i?
>
> Can anybody explain from where this syntax derives?

It appears the "@" allows the service to run multiple instances, which
I can see as a good thing for vnc. In order to start the service I
think you'll need to name your instance, i.e.:

systemctl start vncserver@<my_instance_designator>.service

and the "%i" will resolve to your instance designator.

Or that's what this link[1] said :)

Richard

http://superuser.com/questions/393423/the-symbol-and-systemctl-and-vsftpd


More information about the users mailing list