LinuxQuestions.org
Help answer threads with 0 replies.
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 09-04-2017, 10:06 PM   #1
wawalfo
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Rep: Reputation: Disabled
Question How to create a Desktop Configuration file to start a service


I have a HDD connected to a USB port on my PC which has movies etc on it. I have to run a service called minidlna to enable me to watch this content through my television. I have to restart this service AFTER my HDD starts following a power down of the PC. How can I run this restart from a Desktop icon to avoid going to the terminal command line each time?
 
Old 09-05-2017, 10:49 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,177

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Have a look at these
http://help.ubuntu.com/community/MiniDLNA
http://wiki.archlinux.org/index.php/ReadyMedia

You don't say which distro you use (display it like I do), but one or other of those pages should explain things. The secret is to run it as a daemon.

Last edited by DavidMcCann; 09-05-2017 at 10:50 AM.
 
1 members found this post helpful.
Old 09-05-2017, 12:56 PM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,731

Rep: Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555Reputation: 7555
first you need to write a script to do what you need, next you will need to create a desktop icon to execute that script.
 
1 members found this post helpful.
  


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
Auto start configuration of Network Card eth0 and vsftpd service ali84raza Linux - Newbie 2 03-06-2012 07:11 AM
Desktop independent service start/stop GUI for 13? linus72 Slackware 4 03-04-2010 11:12 AM
how to create bash script to start esx host service? jhanevd Programming 3 03-07-2009 08:35 AM
How to create a service that monitors a file Pastorino Linux - Software 2 09-23-2005 07:29 PM
IRDA service will start, but need help with general configuration BarkingBonefish Linux - Laptop and Netbook 0 03-17-2004 09:31 PM

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

All times are GMT -5. The time now is 08:37 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