<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Bytes</title>
	<atom:link href="http://blog.byteometer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.byteometer.com</link>
	<description>Coding, scripting, configuring, etc.</description>
	<lastBuildDate>Mon, 07 May 2012 07:30:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DD-WRT on Linksys E2000</title>
		<link>http://blog.byteometer.com/dd-wrt-on-linksys-e2000/</link>
		<comments>http://blog.byteometer.com/dd-wrt-on-linksys-e2000/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 17:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dd-wrt]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=375</guid>
		<description><![CDATA[These are the steps I took to flash a Linksys E2000 router with a DD-WRT firmware. Background information http://www.dd-wrt.com/wiki/index.php/Linksys_E2000 http://www.dd-wrt.com/wiki/index.php/Installation Steps Taken - 30/30/30 Reset - Upload dd-wrt.v24-18024_NEWD-2_K2.6_mini-e2000.bin via Linksys firmware upgrade page from ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2011/12-20-11-r18024/broadcom_K26/ - Wait 5 minutes after upload completed. - Web interface for DD WRT appears. - Do a 30/30/30 reset again. [...]]]></description>
			<content:encoded><![CDATA[<p>These are the steps I took to flash a Linksys E2000 router with a DD-WRT firmware.</p>
<p><strong>Background information</strong></p>
<p>http://www.dd-wrt.com/wiki/index.php/Linksys_E2000</p>
<p>http://www.dd-wrt.com/wiki/index.php/Installation</p>
<p><strong>Steps Taken</strong></p>
<p>- 30/30/30 Reset<br />
- Upload dd-wrt.v24-18024_NEWD-2_K2.6_mini-e2000.bin via Linksys firmware upgrade page from ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2011/12-20-11-r18024/broadcom_K26/<br />
- Wait 5 minutes after upload completed.<br />
- Web interface for DD WRT appears.<br />
- Do a 30/30/30 reset again.<br />
- Wireless > Advanced Settings enter 50 in the Tx Power entry. This should make for less Tx/Rx Errors and help the unit run cooler.</p>
<p><strong>General:</strong></p>
<p>- Initital DD WRT firmware flash must be a trailed build. A trailed build has &#8220;*e2000.bin&#8221; in its name. Following flashes must have &#8220;*e2k-e3k.bin&#8221; in their name.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/dd-wrt-on-linksys-e2000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debug a Junit Ant Task from Eclipse</title>
		<link>http://blog.byteometer.com/debug-a-junit-ant-task-from-eclipse/</link>
		<comments>http://blog.byteometer.com/debug-a-junit-ant-task-from-eclipse/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 14:15:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ant]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[remote debugging]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=367</guid>
		<description><![CDATA[Sometimes you run into a test that works when run from within Eclipse but not from the command line. To debug the failing test from Eclipse, you can configure the Junit ant task to accept remote debugging sessions. This can be done by adding the following lines to the junit task: This will make the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you run into a test that works when run from within Eclipse but not from the command line. To debug the failing test from Eclipse, you can configure the Junit ant task to accept remote debugging sessions.</p>
<p>This can be done by adding the following lines to the junit task:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;junit fork=&quot;true&quot;&gt;

		&lt;!-- For remote debugging from Eclipse --&gt;
		&lt;jvmarg value=&quot;-Xdebug&quot; /&gt;
		&lt;jvmarg value=&quot;-Xnoagent&quot; /&gt;
		&lt;jvmarg value=&quot;-Djava.compiler=NONE&quot; /&gt;
		&lt;jvmarg
value=&quot;-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y&quot; /&gt;
</pre>
<p>This will make the task wait for an incoming debug connection on port 8787. It is necessary to have the fork attribute on the junit task set to true, because the jvmarg values can only be given to a starting Java virtual machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/debug-a-junit-ant-task-from-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get XML String from JQuery XML Object</title>
		<link>http://blog.byteometer.com/get-xml-string-from-jquery-xml-object/</link>
		<comments>http://blog.byteometer.com/get-xml-string-from-jquery-xml-object/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 20:13:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=354</guid>
		<description><![CDATA[Problem: You have an XML structure in a JQuery object and now you want to extract a string with the raw xml. Solution: Use the XMLSerializer class. This class provides methods for serializing DOMs and nodes into text or byte streams. In our case, we will call the serializeToString(data) method: new XMLSerializer().serializeToString(xmlDoc);]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: You have an XML structure in a JQuery object and now you want to extract a string with the raw xml.<br />
<strong>Solution</strong>: Use the XMLSerializer class. This class provides methods for serializing DOMs and nodes into text or byte streams. In our case, we will call the serializeToString(data) method:</p>
<div class="codesnip-container" >new XMLSerializer().serializeToString(xmlDoc);</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/get-xml-string-from-jquery-xml-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Commands: Find</title>
		<link>http://blog.byteometer.com/linux-commands-find/</link>
		<comments>http://blog.byteometer.com/linux-commands-find/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 16:54:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[arguments]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=351</guid>
		<description><![CDATA[Find all files from current directory and subdirectories find . -name &#8216;*.doc&#8217; -print Result report.doc somedoc.doc Finding files by date: http://www.cyberciti.biz/faq/howto-finding-files-by-date/]]></description>
			<content:encoded><![CDATA[<p>Find all files from current directory and subdirectories</p>
<div class="codesnip-container" >find . -name &#8216;*.doc&#8217; -print</div>
<p>Result</p>
<div class="codesnip-container" >report.doc<br />
somedoc.doc</div>
<p>Finding files by date: http://www.cyberciti.biz/faq/howto-finding-files-by-date/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/linux-commands-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computer Forensics</title>
		<link>http://blog.byteometer.com/computer-forensics/</link>
		<comments>http://blog.byteometer.com/computer-forensics/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 16:46:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[recovery]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=221</guid>
		<description><![CDATA[The tools I use for computer forensics. Windows Recuva &#8211; Excellent at recovering data from Windows partitions and free to boot. UFS Explorer &#8211; Not free, but is able to recover from linux partitions (Recuva is better for FAT/NTFS) explore2fs &#8211; Access linux partitions from Windows. Free. HFSExplorer &#8211; Access Mac partitions from Windows Linux [...]]]></description>
			<content:encoded><![CDATA[<p>The tools I use for computer forensics.</p>
<p>Windows</p>
<ul>
<li>
<a href="http://www.piriform.com/recuva">Recuva</a> &#8211; Excellent at recovering data from Windows partitions and free to boot.
</li>
<li>
<a href="http://www.ufsexplorer.com">UFS Explorer</a> &#8211; Not free, but is able to recover from linux partitions (Recuva is better for FAT/NTFS)
</li>
<li>
<a href="http://www.chrysocome.net/explore2fs">explore2fs</a> &#8211; Access linux partitions from Windows. Free.
</li>
<li>
<a href="http://www.catacombae.org/hfsx.html">HFSExplorer</a> &#8211; Access Mac partitions from Windows
</li>
</ul>
<p>Linux</p>
<ul>
<li>Hiren&#8217;s Boot CD &#8211; Contains an impressive lineup of programs for computer forensics, but its legal status is often debated.</li>
<li><a href="http://trinityhome.org/Home/index.php?content=TRINITY_RESCUE_KIT____CPR_FOR_YOUR_COMPUTER&#038;front_id=12&#038;lang=en&#038;locale=en">Trinity Rescue Kit</a> &#8211; A live distro with backup programs, Midnight Commander, testdisk, shell and other good stuff. Legal!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/computer-forensics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Array Cast</title>
		<link>http://blog.byteometer.com/java-array-cast/</link>
		<comments>http://blog.byteometer.com/java-array-cast/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 16:38:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=344</guid>
		<description><![CDATA[Casting the array obtained by invoking the toArray() method on a collection yields a ClassCastException. For example: String[] strings = listOfStrings.toArray(); will throw the ClassCastException. The trick is to use the overloaded version of toArray(), which takes an array as parameter. This the javadoc description of the method toArray(T[] a) &#8220;Returns an array containing all [...]]]></description>
			<content:encoded><![CDATA[<p>Casting the array obtained by invoking the <em>toArray()</em> method on a collection yields a <em>ClassCastException</em>.<br />
For example:</p>
<div class="codesnip-container" >String[] strings = listOfStrings.toArray();</div>
<p>will throw the <em>ClassCastException</em>.<br />
The trick is to use the overloaded version of <em>toArray()</em>, which takes an array as parameter. This the <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html">javadoc description of the method</a></p>
<div class="codesnip-container" >toArray(T[] a)<br />
&#8220;Returns an array containing all of the elements in this list in the correct order; the runtime type of the returned array is that of the specified array.&#8221;</div>
<p>The solution is therefore to do this:</p>
<div class="codesnip-container" >String[] sv = (String[])v.toArray(new String[0]);</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/java-array-cast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightroom Image Archive on QNap TS-239 Pro II</title>
		<link>http://blog.byteometer.com/lightroom-images-on-qnap-ts-239-pro-ii/</link>
		<comments>http://blog.byteometer.com/lightroom-images-on-qnap-ts-239-pro-ii/#comments</comments>
		<pubDate>Mon, 09 May 2011 20:55:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lightroom]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[QNap]]></category>
		<category><![CDATA[lightroom photo nas qnap]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=327</guid>
		<description><![CDATA[Moving your Lightroom image library to a NAS Lightrooms data files can roughly be put into two categories: The catalog file(s), which contain meta data about your images such as their location and the actual image files. Lightroom does not permit having the catalog files on network attached storage, so you will have to keep [...]]]></description>
			<content:encoded><![CDATA[<h2>Moving your Lightroom image library to a NAS</h2>
<p>Lightrooms data files can roughly be put into two categories: The catalog file(s), which contain meta data about your images such as their location and the actual image files.</p>
<p>Lightroom does not permit having the catalog files on network attached storage, so you will have to keep those on your workstation. However, you can choose to have Lightroom backup your catalog files to the NAS so they are stored together with your images. This can be configured by going into <em>Edit &gt; Catalog Settings</em> in Lightroom.</p>
<p><strong>The following steps explain how to move your images </strong><strong>from your workstation </strong><strong>to a location on the NAS.</strong></p>
<ul>
<li>Locate your catalog file (you can find it in <em>Edit &gt; Catalog Settings</em>) and make a backup of it. Just as a safety precaution.</li>
<li>Locate the folder containing your images and copy it to the NAS</li>
<li>Rename the local image folder to something like &#8216;images_OLD&#8217;</li>
<li>Open Lightroom</li>
<li>In Library mode, there should now be question marks on the folders, since we renamed the image folder to images_OLD</li>
<li>Right click on each folder and select its new location on the NAS</li>
<li>Once all folders have been resolved, do a quick check, that all images are there</li>
</ul>
<p>If something goes wrong you can always replace the catalog file with the backup from step 1 and rename the images_OLD back to using your local image folder.</p>
<h2>Performance</h2>
<p>As to be expected, there is a slight performance drop, by having the images on a network share instead of a local harddisk. In order to quantify the difference I picked 10 test photos (RAW) and measured the the time it took to zoom in on the image in Library mode. Zooming in on an image forces the actual image to be loaded into memory instead of just showing a preview.</p>
<ul>
<li>Avg. zoom time Local: 6 seconds</li>
<li>Avg. zoom time NAS: 6.9 seconds</li>
</ul>
<p>Not much of a difference and hardly noticable. I have not timed any other operations, but it appears, that the main loading happens only once. I.e., there is no lag when cropping or fixing white balance, since the image has already been loaded into memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/lightroom-images-on-qnap-ts-239-pro-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Harddisk Spindown on TS-239 Pro II</title>
		<link>http://blog.byteometer.com/harddisk-spindown-on-ts-239-pro-ii/</link>
		<comments>http://blog.byteometer.com/harddisk-spindown-on-ts-239-pro-ii/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 12:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[QNap]]></category>
		<category><![CDATA[qnap linux harddisk standby activity sleep]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=237</guid>
		<description><![CDATA[It is possible to configure the harddisks to spin down after a period of inactivity, but if one or more processes keep reading and writing from the disks, that will prevent them from entering standby mode. To find out which processes are causing disk activity, the following script is very useful: blkdevMonitor.sh The script works [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to configure the harddisks to spin down after a period of inactivity, but if one or more processes keep reading and writing from the disks, that will prevent them from entering standby mode.<br />
To find out which processes are causing disk activity, the following script is very useful:<br />
<a href="http://wiki.qnap.com/wiki/Find_out_which_process_prevents_the_hard_drives_from_spindown">blkdevMonitor.sh</a><br />
The script works like this:</p>
<ul>
<li>A standby signal is sent to the disk.</li>
<li>Wait until a process wakes up the disk and then prints out name of that process.</li>
<li>Repeat.</li>
</ul>
<p>The following link contains a list of daemons and configurations known to cause random disk activity: <a href="http://www.qnap.com/faq_detail.asp?faq_id=525">Standby Mode FAQ</a><br />
Older versions of Squeezebox Server caused lots of disk activity, but fortunately that has been resolved in version 7.5.1.<br />
<strong>What is jdb2 and flush?</strong><br />
Sometimes the processes &#8220;jbd2&#8243; and &#8220;flush&#8221; are waking up the harddisk. As I understand, these processes are responsible for doing delayed writes to the disk in order to optimize performance. In other words, they are writing to the disk on behalf of other processes which makes it difficult to find the culprit(s). In my case, it was the samba daemon accessing the disk. As long as a PC or media streamer on your network has an open view on any of your samba shares, it will cause the disks to wake up.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/harddisk-spindown-on-ts-239-pro-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting a USB drive from a TS-239 Pro II</title>
		<link>http://blog.byteometer.com/formatting-a-usb-drive-from-a-ts-239-pro-ii/</link>
		<comments>http://blog.byteometer.com/formatting-a-usb-drive-from-a-ts-239-pro-ii/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 20:41:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[QNap]]></category>
		<category><![CDATA[ext3 linux format partition fdisk df lsusb dmesg usb drive]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=261</guid>
		<description><![CDATA[Plug the USB stick into the Qnap. Then in a terminal, as root, do an lsusb to confirm that the USB drive has been recognised. To find out what device name it has been assigned, do a dmesg &#124; tail. This will print the latest lines from the kernel log, which should contain information about [...]]]></description>
			<content:encoded><![CDATA[<p>Plug the USB stick into the Qnap. Then in a terminal, as root, do an <em>lsusb</em> to confirm that the USB drive has been recognised.<br />
<a href="http://blog.byteometer.com/wp-content/uploads/2011/01/lsusb.png"><img src="http://blog.byteometer.com/wp-content/uploads/2011/01/lsusb.png" alt="" title="lsusb" width="547" height="264" class="size-full wp-image-239" /></a><br />
To find out what device name it has been assigned, do a <em>dmesg | tail</em>. This will print the latest lines from the kernel log, which should contain information about the inserted USB drive:<br />
<a href="http://blog.byteometer.com/wp-content/uploads/2011/01/dmesg-tail-usb-drive.png"><img src="http://blog.byteometer.com/wp-content/uploads/2011/01/dmesg-tail-usb-drive.png" alt="" title="dmesg-tail-usb-drive" width="547" height="264" class="size-full wp-image-241" /></a><br />
<em>fdisk -l</em>, which shows all connected drives, can also be used to find the right device name. The USB drive can be recognised by its size. In this case, it is a 2 GB one:<br />
<img src="http://blog.byteometer.com/wp-content/uploads/2011/01/fdisk-l.png" alt="output from fdisk -l" /><br />
If the USB drive is already formatted with e.g. NTFS, it has probably been mounted automatically, in which case it should be unmounted. You can check this with the <em>df</em> command:<br />
<img src="http://blog.byteometer.com/wp-content/uploads/2011/01/df.png" alt="df" /><br />
Once we know the name of the drive and it is unmounted, we can create a new linux partition using fdisk:</p>
<ul>
<li>Do an <em>fdisk /dev/sdv</em></li>
<li>type <em>d</em> to delete any existing partitions.</li>
<li>Type <em>n</em> to create a new partition.</li>
<li>Make it <em>primary</em> and <em>first</em></li>
<li>Go with the defaults when prompted for start and end cylinder</li>
<li>Press <em>t</em> to change the filesystem to linux (number 83)</li>
<li>Type <em>w</em> to write the changes to the disk and exit</li>
</ul>
<p>Finally, format the partition with the <em>ext3</em> filesystem:</p>
<div class="codesnip-container" >mke2fs -j /dev/sdv1</div>
<p><a href="http://blog.byteometer.com/wp-content/uploads/2011/01/mke2fs.png"><img src="http://blog.byteometer.com/wp-content/uploads/2011/01/mke2fs.png" alt="" title="mke2fs" width="483" height="312" class="aligncenter size-full wp-image-258" /></a><br />
Now the partion is formatted and it can be mounted again:</p>
<div class="codesnip-container" >mount /dev/sdv1</div>
<p>The USB drive is now ready for use <img src='http://blog.byteometer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/formatting-a-usb-drive-from-a-ts-239-pro-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting, restarting and stopping daemons in Linux</title>
		<link>http://blog.byteometer.com/start-restarting-sto-a-daemon-in-linux/</link>
		<comments>http://blog.byteometer.com/start-restarting-sto-a-daemon-in-linux/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 19:15:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[QNap]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://blog.byteometer.com/?p=222</guid>
		<description><![CDATA[Daemon services, or just daemons, are started at boot time. They are roughly equivalent to services in the Windows world. To see which daemons are available on a system, do an ls -l /etc/init.d/ Every script in that directory represents a daemon, which can be started, restarted and stopped manually using the following syntax: /etc/init.d/&#60;daemon [...]]]></description>
			<content:encoded><![CDATA[<p>Daemon services, or just daemons, are started at boot time. They are roughly equivalent to services in the Windows world.<br />
To see which daemons are available on a system, do an</p>
<div class="codesnip-container" >ls -l /etc/init.d/</div>
<p>Every script in that directory represents a daemon, which can be started, restarted and stopped manually using the following syntax:</p>
<div class="codesnip-container" >/etc/init.d/&lt;<strong>daemon name</strong>&gt; <strong>start | restart | stop</strong></div>
<p>If, for example, I wanted to restart an nzb-get daemon due to changes in its configuration files, I would type</p>
<div class="codesnip-container" >/etc/init.d/nzb-get.sh restart</div>
<p>After issuing the command, the daemon will usually print some lines to the terminal indicating what it is doing, e.g.: &#8221;<em>Starting NZB-Get Daemon</em>&#8221; or &#8220;<em>Shutting Down</em>&#8220;.</p>
<p>If you want to make sure whether a daemon is running or not, you can grep for its name in the list of running processes. If I wanted to see if the nzb-get daemon was really started, I could do the following grep:</p>
<div class="codesnip-container" >ps -aux | grep nzb</div>
<p>If the daemon is running, this will produce a result like:</p>
<div class="codesnip-container" >8148 admin      2456 S   /opt/bin/nzbget &#8211;daemon<br />
8355 admin       564 S   grep nzb</div>
<p>The first line is the daemon. Notice the &#8220;&#8211;daemon&#8221; at the end of the line. The second line is the grep process we just ran to find the daemon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.byteometer.com/start-restarting-sto-a-daemon-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

