[systemd-devel] cannot add dependency service to graphical.target

Lennart Poettering lennart at poettering.net
Wed May 2 17:37:51 PDT 2012


On Thu, 26.04.12 21:10, ZiQiang Huan (hzqhuan at gmail.com) wrote:

> hi, everyone,
> I try to write a systemd service just like below:
> [Unit]
> Description=service for telnetd
> Wants=syslog.target

syslog.target is not really necessary anymore these days.

> 
> [Service]
> ExecStart=/usr/bin/busybox telnetd
> Restart=always
> RestartSec=10
> 
> [Install]
> WantedBy=graphical.target
> 
> but when I boot up, I got the error below: 
> systemd[1]: Cannot add dependency telnetd.servcie to graphical.target,
> ignoring: Invalid argument 

This looks like a simple typo: "telnetd.servcie" is not a valid service
name, and should probably be "telnetd.service".

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list