LinuxQuestions.org
Review your favorite Linux distribution.
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 01-20-2020, 06:05 AM   #1
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Rep: Reputation: Disabled
service file on lubuntu


Up front i am very sorry for my previous thread about the difference between, you know what. I still like to understand so i will try to ask it in steps, perhaps that will give me an answer and keep out any flames?

If i have a service file with this contents in it:

Code:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Some program"
NAME=program
USERNAME=me
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME  <-------
Why is the SCRIPTNAME pointed to the program in /etc/init.d/ that does not exist there? Keep in mind that there are 2 different ways to start the program and i choose not init.d . . .

Do i manually need to point it to the program? Or does it not matter? Please help me understand?
 
Old 01-20-2020, 11:51 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I don't know what you mean by "service file" and where you found this file. This is most definitely not a systemd service unit, but looks like the first lines of a SysV init script, which would normally be located at /etc/init.d. Perhaps the SCRIPTNAME file doesn't exist because you chose not to use init.d.
 
Old 01-21-2020, 05:50 AM   #3
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
Thank you berndbausch
 
  


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
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
LXer: Lubuntu Is Finally Moving to LXQt by Default with the Lubuntu 18.10 Release LXer Syndicated Linux News 0 05-03-2018 12:18 AM
LXer: No Audio in Lubuntu? - Lubuntu Audio Configuration and Volume Control LXer Syndicated Linux News 0 05-22-2016 11:17 PM
Lubuntu File Server Permissions lubuntuplex Linux - Networking 6 01-14-2013 11:11 PM
[SOLVED] White desktop in Lubuntu Precise with caja file manager nokangaroo Linux - Desktop 0 03-02-2012 05:37 AM

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

All times are GMT -5. The time now is 05:38 AM.

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
Open Source Consulting | Domain Registration