systemctl question

Bill Davidsen davidsen at tmr.com
Sat Apr 28 15:20:40 UTC 2012


Richard Shaw wrote:
> 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 :)
>
Thanks for finding that obscure reference. Pity it isn't in the man page where 
mere mortals could find it. :-(

-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot


More information about the users mailing list