Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 
480 posts

Ultimate Geek

  # 2132309 22-Nov-2018 22:05
Send private message

The command "service <name> start" is obsolete and deprecated in Ubuntu 16.04 and above.  That command is for upstart, and upstart is gone and replaced by systemd in 16.04.  They did do some mapping of the "service" command to the systemd equivalent, so it mostly still works, but you really now should be using the systemd commands directly:


systemctl <command> <name>


where <command> is start, stop, restart, reload and a whole pile of other less used things.  See "man systemctl".  I have found that systemd is very good for creating a service out of a program, now that I understand it well enough.  But most programs used as services get installed as a service anyway - the package has the necessary config files.  To see if there is a service installed, try a command like:


systemctl list-unit-files | grep cron


which will show you all the systemd "units" that have "cron" in their name.  Anything that has ".service" at the end is a service.


517 posts

Ultimate Geek

  # 2132561 23-Nov-2018 11:21
Send private message



Yes. And you can use the jobs command to see what background tasks you have.  Do note that if you logout of that session that job will stop.  You need to use nohup or screen to avoid that.





Cheers that worked adding & at the end and could switch to and from it using bg/fg


the no log out is a deal breaker for what im doing, it a bunch of community gaming servers, they've already been offline a couple of times because of that and I couldn't figure out why.. :-) 


Thanks to everyone, reading through the comments and the links systemd is definitely what I need to do next, will give it a crack today and report back with how I get on :) 



1 | 2 
Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic

Twitter and LinkedIn »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31

Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29

Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24

Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59

Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07

Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02

Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41

Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36

2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17

Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46

Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51

Facebook Portal to land in New Zealand
Posted 19-Sep-2019 18:35

Amazon Studios announces New Zealand as location for its upcoming series based on The Lord of the Rings
Posted 18-Sep-2019 17:24

The Warehouse chooses Elasticsearch service
Posted 18-Sep-2019 13:55

Voyager upgrades core network to 100Gbit
Posted 18-Sep-2019 13:52

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.