LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2018, 02:38 AM   #1
tankzeu
LQ Newbie
 
Registered: Sep 2018
Posts: 26

Rep: Reputation: Disabled
Systemd service gets masked after restart


I am creating file test.service and put it into /etc/systemd/system and I can use all the systemctl commands on it ,however when I restarted the computer and I tried to do "systemctl restart test.service" i go the error that the service was masked.I haven't masked it manually how did it get masked?
 
Old 11-16-2018, 07:37 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,316
Blog Entries: 27

Rep: Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878Reputation: 4878
A web search for "systemd masked service" turns up may articles and posts on this topic.
 
Old 11-17-2018, 01:22 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,569
Blog Entries: 9

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
Quote:
Originally Posted by tankzeu View Post
I am creating file test.service and put it into /etc/systemd/system and I can use all the systemctl commands on it
this sounds wrong.
please show us the file, and how did you activate it? all commands issued and their full output.
also
Code:
systemctl status test.service
btw, that's not a very unique name, maybe you should use "test-tankzeu-1" or "test-34897389458934" instead?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Systemd service: AUTOSSH.service does not start at boot, how can I fix this? The_Linux_Machine Linux - Newbie 1 07-06-2016 12:00 PM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
How do I set the regulatory daemon to restart when I restart the network service? zahadumy Linux - Networking 0 11-05-2006 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration