Re: Why tgtd cannot start?

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

 



It already started when you ran  sudo service tgt restart
To check if tgt is running   you should use  "sudo service tgt status"
  not chkconfig.

Use the service command to start/stop/check the service at runtime.


chkconfig is something different. It is used to configure whether or
not the service will be automatically started when you reboot the
system.


So usually when you set up a service for the first time you
1, use "service ... start"  to start it up.
2, use "chkconfig --on"   to configure the system so that it will be
automatically restarted when you reboot





On Fri, May 3, 2013 at 11:41 PM, Wang Sen <kelvin.xupt@xxxxxxxxx> wrote:
> Hi all,
>
> I installed tgt under Ubuntu system by apt-get. But It seems that tgtd cannot
> start.
>
> hadoop@kelvin-desktop ~ $ sudo service tgt restart
> [sudo] password for hadoop:
> tgt stop/waiting
> tgt start/running
> hadoop@kelvin-desktop ~ $ chkconfig --list | grep tgt
> tgt                       0:off  1:off  2:off  3:off  4:off  5:off  6:off
> hadoop@kelvin-desktop ~ $ sudo service tgt start
> start: Job is already running: tgt
>
> Can anyone tell me the reason and how to fix it?
>
> Thanks.
> --
> To unsubscribe from this list: send the line "unsubscribe stgt" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux