<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://aplawrence.com//rss/fullLinux.rdf">
<title>Linux Site News at A.P.Lawrence.com</title>
<link>http://aplawrence.com/</link>
<description>
Linux feed at aplawrence.com: Thousands of articles, reviews, consultants listings, skills tests, opinion, how-to's for Unix, Linux and Mac OS X, networking, web site maintenance and more.. 
</description>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>6</sy:updateFrequency>
<sy:updateBase>2008-01-01T00:00+00:00</sy:updateBase>
<dc:language>en</dc:language>
<dc:publisher>A.P. Lawrence</dc:publisher>
<dc:rights>Copyright  A.P. Lawrence</dc:rights>
<dc:creator>A.P. Lawrence (mailto:rssfeeds@aplawrence.com)</dc:creator>
<dc:date>2017-02-17T10:37:54+00:00</dc:date>
<image rdf:resource="http://aplawrence.com/image21.gif">
</image>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://aplawrence.com/Linux/amazon-best-seller.html" />
<rdf:li rdf:resource="http://aplawrence.com/Forum/rcp_root.html" />
<rdf:li rdf:resource="http://aplawrence.com/Forum/prevent-logins.html" />
<rdf:li rdf:resource="http://aplawrence.com/Forum/programmers-calculator.html" />
<rdf:li rdf:resource="http://aplawrence.com/SCO_OSR5/SCO_X.html" />
<rdf:li rdf:resource="http://aplawrence.com/Security/the-moose-is-bullwinkle.html" />
<rdf:li rdf:resource="http://aplawrence.com/Basics/unix-startup-scripts-4.html" />
</rdf:Seq>
</items>
</channel>
<image rdf:about="http://aplawrence.com/image21.gif">
<title>A.P.Lawrence Logo</title>
<url>http://aplawrence.com/image21.gif</url>
<link>http://aplawrence.com</link>
</image>


<item rdf:about="http://aplawrence.com/Linux/amazon-best-seller.html">
<title>I have a best selling book on Amazon!  </title>
<description>
<![CDATA[

<!-- <html><head><title>I have a best seller on Amazon</title></head><body> -->

<!-- 2015/10/28 -->

<p>Pardon me while I brag a little bit.</p>
<p>Well, no, not really brag. Honestly, I'm just astonished to find my <a href="http://aplawrence.com/Linux/troubleshooting.html">Unix and Linux Troubleshooting E-Book</a> listed among the "best sellers" in not one, but two Amazon categories.  Ok, in fairness it barely makes the cutoff in <i>Books&gt;Computers &amp; Technology&gt;Operating Systems&gt;Unix</i>, but it's on page two of <i>Kindle Store&gt;Kindle eBooks&gt;Computers &amp; Technology&gt;Operating Systems&gt;Unix</i> and that surprises me.</p>
<div style="text-align:center">

<p><img src="http://aplawrence.com/images/amazon-best-seller.jpg" alt=" Amazon page as of October 2015" title=" Amazon page as of October 2015 " /></a></p>

</div>
<p>OK, it's not exactly like it was <i>Books&gt;Computers &amp; Technology&gt;Operating Systems&gt;Linux</i>, but even there it is not all that far from the magic 100 mark. This book is much more popular than I thought.</p>
<p>I guess I shouldn't be too surprised as Amazon has been sending me money all these years and it's not like any of those are very crowded categories, but still: it's a best seller and I'm going to stick that little feather in my cap and call attention to it.</p>
<p>If you don't mind spending a whopping $2.99 for what one reviewer called "Whimsical, entertaining, yet informative", you could even help me drive it higher!</p>
<p><a href="http://www.amazon.com/Linux-Unix-Troubleshooting-Anthony-Lawrence-ebook/dp/B004Q3RK8C/">Linux and Unix Troubleshooting Kindle Edition</a></p>



<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/Linux/amazon-best-seller.html</link>
</item>
<item rdf:about="http://aplawrence.com/Forum/rcp_root.html">
<title>Why doesn't rcp work for root?  </title>
<description>
<![CDATA[

<!-- <html><head><title>Why doesn't rcp work for root?</title></head><body> -->

<!-- 2015/10/14 -->


<p>Anonymous asks: <br />
<p><i>Why doesn't rcp work for root? I get Permission Denied even though it works with other users?</i></p>

<p>Before I answer that, I'd like to first suggest that you forget about rcp and use scp.  Unless the system you are using is too old to support ssh and scp, you really should not use rcp.</p>
<p>So my answers assume you cannot. The first thing to understand is that root has special rules.  One is that you must use a .rhosts file in root's HOME directory.  It must be owned by root and must be 0600 perms.</p>
<p>Be sure that root's HOME is where you think it is!</p>
<p>You also need to realize that any system names you put in .rhosts have to match what the system sees. Check by pinging the ip of the other site.</p>
<p>Another requirement is that root be allowed to login remotely. That may require an entry in /etc/securetty on some systems and you may also need to allow it in Selinux if that is enabled.</p>
<p>Obviously any firewalls in the way need to allow this and the rsh service has to be started or enabled in whatever functions as the super daemon on your system. As I'm assuming you are using something too old for ssh, that's probably /etc/inetd.conf or an /etc/xinetd.d file.</p>



<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/Forum/rcp_root.html</link>
</item>
<item rdf:about="http://aplawrence.com/Forum/prevent-logins.html">
<title>How can I prevent logins?  </title>
<description>
<![CDATA[

<!-- <html><head><title>How can I prevent logins?</title></head><body> -->

<!-- 2015/10/08 -->


<p>Anonymous asks: <br />
<p><i>How can I prevent logins? I need a way to disable logins from the root user account without being at the server console itself.</i></p>

<p>Many modern Unix/Linux systems respect the /etc/nologin file.  Simply login as root and do "touch /etc/nologin".  This restricts logins to root only. When you want to allow users again, "rm /etc/nologin".</p>
<p>Many systems also allow you to add text to /etc/nologin. When users attempt to login, they see that text.</p>
<pre>
$ ssh tonyl@aplawrence.com


Logins currently not allowed.

Check back in an hour or so, thanks.


</pre>
<br /><br />
<p>Older systems like SCO Unix don't have that. For these systems, you need to add code to /etc/profile. For example, you could add this:</p>

<pre>
IAM=`who am i | cut -d" " -f1`
[ -f /etc/nologin ] &amp;&amp; [ $IAM ] &amp;&amp; [ $IAM != "root" ] &amp;&amp; exit 0
</pre>
<p>The danger here is that you mistype that code - you could easily lock yourself out forever. I recommend not exiting the editor until you have tested thoroughly.</p>
<br /><br />
<p>But what about users already logged in?  That code doesn't affect them at all.</p>
<p>That can be trickier.  You can write scripts to loop through logged in users and kill them off.  A more drastic but easy solution is to "touch /etc/login" and then do a shutdown and reboot.</p>




<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/Forum/prevent-logins.html</link>
</item>
<item rdf:about="http://aplawrence.com/Forum/programmers-calculator.html">
<title>Where can I get a hexadecimal or binary calculator?  </title>
<description>
<![CDATA[

<!-- <html><head><title>Where can I get a hexadecimal or binary calculator?</title></head><body> -->

<!-- 2015/07/07 -->

<p>Anonymous asks: <br />
<p><i>Where can I get a hexadecimal or binary calculator that will help me manage hex and binary numbers?</i></p>

<p>Do you mean like this?</p>
<div style="text-align:center">

<p><a href="http://aplawrence.com/cgi-bin/showpic.pl?image=programmers-calculator_lg.jpg&amp;mytitle=Mac%20OS%20Programmer's%20Calculator%20(CMD+3%20to%20switch%20to%20this%20from%20standard%20calculator)&amp;returnpage=Forum/programmers-calculator.html&amp;returntitle=Where%20can%20I%20get%20a%20hexadecimal%20or%20binary%20calculator?"><img src="http://aplawrence.com/images/programmers-calculator.jpg" alt="Mac OS Programmer's Calculator (CMD+3 to switch to this from standard calculator)" title="Mac OS Programmer's Calculator (CMD+3 to switch to this from standard calculator) (click for larger view)" /></a><br /></p>

</div>
<p>That's just the standard Calculator App on Mac OS X after hitting Command+3. The standard Windows 7/8 calculator has a very similar switching capability.</p
>
<p>On Linux, most people recommand qalculate.</p>
<p>There is a whole pile of choices on Android - just Google!</p>
<p>There are also many listed in the IOS App store, but Pcalc seems to be the clear leader. You can add a $2.99 
Programmer Pack to the free Lite Version or get the full version (which includes that and more) for  $9.99.</p>
<p><a href="http://www.maketecheasier.com/qalculate-powerful-calculator-for-linux/">Qalculate is a Powerful Calculator For Linux</a></p>

<p><a href="http://www.7tutorials.com/windows-calculator-tool-geek-you">The Calculator in Windows 7 & Windows 8 - A Tool for the Geek in You!</a></p>
<p><a href="http://lifehacker.com/switch-between-three-calculators-on-os-x-with-a-keyboar-1711448741">Switch Between Three Calculators on OS X with a Keyboard Shortcut</a></p>




<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/Forum/programmers-calculator.html</link>
</item>
<item rdf:about="http://aplawrence.com/SCO_OSR5/SCO_X.html">
<title>Xinuos introduces SCO_X - does anyone care?  </title>
<description>
<![CDATA[

<!-- <html><head><title>Xinuos introduces SCO_X - does anyone care?</title></head><body> -->

<!-- 2015/06/25 -->

<p>Xinuos has introduced Open Server X, a BSD distro that they describe as a "migration path" for  SCO UnixWare 7, SCO OpenServer 5 and SCO OpenServer 6 customers. If this had been offered ten years ago, it might have been of interest, but I really have a hard time imagining this will matter at all now.  Still, I downloaded the image and fired it up in a VM.</p>

<div style="text-align:center">

<p><a href="http://aplawrence.com/cgi-bin/showpic.pl?image=SCO_X_lg.jpg&amp;mytitle=SCO_X%20-%20does%20anyone%20care?&amp;returnpage=SCO_OSR5/SCO_X.html&amp;returntitle=Xinous%20introduces%20SCO_X%20-%20does%20anyone%20care?"><img src="http://aplawrence.com/images/SCO_X.jpg" alt="SCO_X - does anyone care?" title="SCO_X - does anyone care? (click for larger view)" /></a></p>

</div>
<p>And that was as far as I went. I simply cannot imagine myself suggesting that anyone now stuck on an older SCO OS take a look at this.  Why would they? What possible advantage could there be?  I don't see any - if I'm wrong, please do tell me in the comments.</p>
<p>Update Decenber 2015:  John Boland added this:</p>
<p><i>As an old System V programmer, I've been interested in the SCO
products as descendants of SysV and have at various times installed and
done no more than play around with Openserver 5 and Unixware 7. Starting
up X I was momentarily shocked  to see the familiar FreeBSD opening
lines and quickly realised that's what it is. But what I now think is
that it's a relatively painless way of installing a FreeBSD desktop,
complete with Xfce. Almost everything you might want can be installed
easily from the DVD and, apart from some later messing around to get
wifi going, it all went quite smoothly. Once installed, I've seen it
essentially as FreeBSD but with that somewhat Solaris 10-like
Administration program. Anyway, we'll see.</i></p>


<p><a href="http://www.reuters.com/article/2015/06/09/ca-xinuos-idUSnBw095298a+100+BSW20150609">Xinuos Announces OpenServer X Operating System to Deliver Enterprise-Class Solutions to Companies of Any Size</a></p>
<p><a href="http://www.xinuos.com/menu-products/server/openserver-x">OpenServer X</a></p>



<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/SCO_OSR5/SCO_X.html</link>
</item>
<item rdf:about="http://aplawrence.com/Security/the-moose-is-bullwinkle.html">
<title>The Moose Linux Router Worm is more like Bullwinkle, honestly  </title>
<description>
<![CDATA[

<!-- <html><head><title>The Moose is more like Bullwinkle, honestly</title></head><body> -->

<!-- 2015/06/02 -->


<p>I've been seeing frightening headlines about a new threat to Linux based routers.  "Moose - the router worm with an appetite for social networks", "Dissecting the Linux/Moose malware", "Moose worm targeting Linux-based routers and systems" and more.  Bar the door and get out the rifles, boys: we are under attack!</p>
<p>There's even an imposing list of "affected vendors": 3Com, Alcatel-Lucent, Allied Telesis, Avaya, Belkin, Brocade, Buffalo, Celerity, Cisco, D-link, Enterasys, Hewlett-Packard, Huawei, Linksys, Mikrotik, Netgear, Meridian, Nortel, SpeedStream, Thomson, TP-Link, Zhone, ZyXEL and more.  Forget the rifles, we need cannons!</p>
<p>Really? According to an Arstechnica article that came complete with a scary graphic, the Linux/Moose malware "exploits routers open to connections from the Internet via Telnet by performing brute-force login attempts using default or common administrative credentials". </p>
<p>Say what?  Telnet? Default credentials?</p>
<p>Honestly, how can you look at me with a straight face and call this a Linux security issue? ANY ROUTER WITH DEFAULT CREDENTIALS IS A SECURITY THREAT! This isn't a Linux security issue; it's an idiot's security issue!</p>
<p>On my systems, I'm meeting this threat head-on by doing absolutely nothing. I never had telnet open to start with and default credentials were changed before any of my routers first connected to the internet. Linux security threat? Nonsense.</p>

<p><a href="http://arstechnica.com/security/2015/05/the-moose-is-loose-linux-based-worm-turns-routers-into-social-network-bots/">The Moose is loose: Linux-based worm turns routers into social network bots</a></p>



<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/Security/the-moose-is-bullwinkle.html</link>
</item>
<item rdf:about="http://aplawrence.com/Basics/unix-startup-scripts-4.html">
<title>Unix and Linux startup scripts Part 4, Systemd  </title>
<description>
<![CDATA[

<!-- <html><head><title>Unix and Linux startup scripts Part 4, Systemd</title></head><body> -->

<!-- 2015/05/13 -->



<p>This is a continuation of <a href="http://aplawrence.com/Basics/unix-startup-scripts-3.html">Unix and Linux startup scripts, Part 3</a></p>
<p>Systemd is gaining favor in Linux distributions. This is a big change from inittab and everything else we've had in the past. To find out more about it, I downloaded the latest Ubuntu desktop and began exploring.  The first thing I noticed is that there is still an init.d directory and it does have shell scripts in it. However, /sbin/init is now a symlink to /etc/systemd and those scripts do not execute when systemd is in charge.</p>
<div style="text-align:center">

<p><a href="http://aplawrence.com/cgi-bin/showpic.pl?image=systemd_lg.jpg&amp;mytitle=Systemd%20is%20the%20default%20on%20Ubuntu%2015.04&amp;returnpage=Basics/unix-startup-scripts-4.html&amp;returntitle=Unix%20and%20Linux%20startup%20scripts%20Part%204,%20Systemd"><img src="http://aplawrence.com/images/systemd.jpg" alt="Systemd is the default on Ubuntu 15.04" title="Systemd is the default on Ubuntu 15.04 (click for larger view)" /></a></p>

</div>
<p><i>Note that the Advanced Options section of the Grub menu will let you boot with Upstart. You'll need to edit your /etc/default/grub file to put a "#" ahead of GRUB_HIDDEN_TIMEOUT=0 and do a "sudo update-grub" to have that option.</i></p>
<p>As systemd certainly can execute shell scripts, I wondered if it might be piggybacking these. It isn't: I modified /etc/init.d/rc.local to add "date &gt;&gt; /home/tony/booted".  That runs if I boot with Upstart, but not with systemd.  So how would you do something simple like that?</p>
<p>Systemd has its own directory, /etc/systemd. There are various files and sub-directories. In the sub-directories are the "service" files (called units in much documentation) that control startup. I noticed a "user" directory and figured that might be a good place to add my own little test, but apparently it isn't necessarily.  See <a href="https://wiki.archlinux.org/index.php/Systemd/User">systemd/User</a>. So I created it in my home directory.</p>
<pre>
[Unit]
Description=Tony's date stamper

[Service]
ExecStart=/home/tony/tonyapp

[Install]
WantedBy=multi-user.target
</pre>
<p>The Description will appear in logs.  The ExecStart is what I want to happen and WantedBy tells it when.  There are other possible targets: poweroff.target (when system is going down, like run-level 0), rescue.target (single user, init 1), multi-user.target (init 2-4), graphical.target (init 5) and reboot.target (init 6). ExecStart could be a binary, a shell script - but note that you must include the full path and that the environment is empty - no variables are set. If you must set variables, add an <a href="http://0pointer.de/public/systemd-man/systemd.exec.html#EnvironmentFile=">EnvironmentFile=</a> line pointing at something that sets them or use Environment="XYZ=7" 'YY=hello there' for simple cases. After adding this file, I enabled it with "sudo systemctl enable /home/tony/tonyapp.service".  I could force it to run right now with "systemctl start tonyapp".</p>
<p>Note that this won't try to restart because there is nothing in the service file to say that it should. There are many, many other control words you can use.  You can specify that other services must start before this and that others must be after. Service files can be quite complex; you can learn more by looking in the /etc/systemd/system directory. You can ask about the status of any service with (for example):</p>
<pre>
$ systemctl status tonyapp
● tonyapp.service - Tony's date stamper
   Loaded: loaded (/home/tony/tonyapp.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2015-05-12 06:56:36 PDT; 10min ago
  Process: 1417 ExecStart=/home/tony/tonyapp (code=exited, status=0/SUCCESS)
 Main PID: 1417 (code=exited, status=0/SUCCESS)

May 12 06:56:36 ubuntu systemd[1]: Started Tony's date stamper.
May 12 06:56:36 ubuntu systemd[1]: Starting Tony's date stamper...
</pre>
<p>That tells us everything we'd need to know! Other services may give even more information:</p>
<pre>
$ systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2015-05-12 06:50:56 PDT; 17min ago
  Process: 955 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 708 (sshd)
   CGroup: /system.slice/ssh.service
           └─708 /usr/sbin/sshd -D

May 12 06:50:56 ubuntu systemd[1]: Started OpenBSD Secure Shell server.
May 12 06:50:56 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
May 12 06:50:57 ubuntu sshd[708]: Server listening on 0.0.0.0 port 22.
May 12 06:50:57 ubuntu sshd[708]: Server listening on :: port 22.
May 12 06:50:57 ubuntu sshd[708]: Received SIGHUP; restarting.
May 12 06:50:57 ubuntu systemd[1]: Reloaded OpenBSD Secure Shell server.
May 12 06:50:57 ubuntu sshd[708]: Server listening on 0.0.0.0 port 22.
May 12 06:50:57 ubuntu sshd[708]: Server listening on :: port 22.
May 12 06:52:56 ubuntu sshd[1283]: Accepted password for tony from 10.211.55.2 port 58485 ssh2
May 12 06:52:56 ubuntu sshd[1283]: pam_unix(sshd:session): session opened for user tony by (uid=0)
</pre>
<p>You can get a simple status list with "systemctl list-unit-files --type=service" 

<div style="text-align:center">

<p><a href="http://aplawrence.com/cgi-bin/showpic.pl?image=systemd2_lg.jpg&amp;mytitle=Service%20status&amp;returnpage=Basics/unix-startup-scripts-4.html&amp;returntitle=Unix%20and%20Linux%20startup%20scripts%20Part%204,%20Systemd"><img src="http://aplawrence.com/images/systemd2.jpg" alt="Service status" title="Service status (click for larger view)" /></a><br /></p>

</div>

<p>Note the STATE column.  Possible states are:
<ul>
<li>enabled</li>
<li>disabled</li>
<li>static - enabled if something else wants it, disabled otherwise. Its unit file does not contain an "install" section.</li>
<li>masked - disabled and cannot be started.  "systemctl mask tonyapp.service" would prevent it starting, "systemctl unmask tonyapp.service" restores normalcy</li>
<li>linked - Came from  a symlink to the unit file by "systemctl link SOMEUNITFILE". The unit file is now available for start and other commands although it is not installed directly in the unit search path. </li>
<li>failed</li>
<li>enabled-runtime - enabled for only this boot of the system</li>
<li>linked-runtime - linked for only this boot of the system</li>
<li>masked-runtime - masked for only this boot of the system</li>
<li>indirect - Unit file itself is not enabled, but it has a non-empty Also= setting in the "[Install]" section. That keyword allows units to be treated as a set. </li>
</ul>


<p>That "masked" seems to be done by symlinking to /dev/null.</p>
<p>So could you use SysV init scripts?  Yes, but with some caveats: <a href="http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities/">Compatibility with SysV</a>. 
Unlike SysV, scripts cannot hang. By default, they are stopped in 5 minutes (can be changed with TimeoutStopSec= or in sysytemd conf files). Let me mention again that the environment is clean - nothing set at all. Also, systemd won't try to stop a service that is not already running.</p>
<p>By the way, your unit file specifies how things are stopped with <a href="http://www.freedesktop.org/software/systemd/man/systemd.kill.html">KillMode=</a> and a few other directives.</p>
<p>Switching to targets is easy: "systemctl isolate rescue.target".  In addition to that, systemctl takes arguments like "reboot", "default", "suspend", "hibernate" and more.
<p>Systemd can also start things when other things happens. It functions as the (x)inetd super daemon did for network connections. It can start a service when a file is created and <a href="https://wiki.ubuntu.com/SystemdForUpstartUsers">much more</a>. I have barely scratched the surface here.</p>

<p>I like systemd. I learned BSD init and SysV inittab thirty-five years ago, but I see no need to be stubborn about it: this is better.  I didn't like Upstart or any of the other replacement wanna-be's, but systemd makes sense.</p>

<p><a href="http://www.pcworld.com/article/2921385/its-optional-for-now-but-linux-mint-expects-to-switch-to-systemd-next-year.html">It's optional for now, but Linux Mint expects to switch to systemd next year</a></p>
<p><a href="http://www.theregister.co.uk/2015/03/07/ubuntu_to_switch_to_systemd/">Grab your pitchforks: Ubuntu to switch to systemd on Monday</a></p>



<p style="word-break: break-word; max-width: 100%; color: rgb(70, 70, 70); font-family: -apple-system-font; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">-- This feed and its contents are the property of A.P. Lawrence, and use is subject to our terms. It may be used for personal consumption, but may not be distributed on a website.</p><br class="Apple-interchange-newline">

]]>
</description>
<link>http://aplawrence.com/Basics/unix-startup-scripts-4.html</link>
</item>
</rdf:RDF>
