 the given name.
     *
     * @param  EntityManager $em   The entity manager
     * @param  string        $name The socket to kill, one of
     *                             cudi:sale-queue
     *                             sport:run-queue
     *                             syllabus:update
     * @return object        An object with'status' set to'success' or 'error'
     *                            If 'error','reason' gives a reason and 'output' gives the
     *                            output of the failed command
     */
    public static function kill(EntityManager $em, $name)
    {
        $pidDir = $em->getRepository('CommonBundle\Entity\General\Config')
            ->getConfigValue('socket_path');

        $pidFile = $pidDir. '/pids'. $name. '.pid';

        $output = array();
        $return = 0;

        $pid = exec('cat '. escapeshellarg($pidFile).'2>&1', $output, $return);

        if (0!== $return) {
            return (object) array(
               'status' => 'error',
               'reason' => 'pid_file',
                'output' => implode("\n", $output),
            );
        }

        $output = array();

        exec('kill '. escapeshellarg($pid).'2>&1', $output, $return);

        if (0!== $return) {
            return (object) array(
               'status' => 'error',
               'reason' => 'kill_failed',
                'output' => implode("\n", $output),
            );
        }

        return (object) array(
           'status' =>'success',
        );
    }
}
<commit_msg>fixed typo<commit_after><?php
/**
 * Litus is a project by a group of students from the KU Leuven. The goal is to create
 * various applications to support the IT needs of student unions.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @license http://litus.cc/LICENSE
 */

namespace CommonBundle\Component\Util;

use Doctrine\ORM\EntityManager;

/**
 * A utility class for websocket handling
 *
 * @author <NAME> <<EMAIL>>
 */
class WebSocket
{
    /**
     * Tries to kill the websocket with the given name.
     *
     * @param  EntityManager $em   The entity manager
     * @param  string        $name The socket to kill, one of
     *                             cudi:sale-queue
     *                             sport:run-queue
     *                             syllabus:update
     * @return object        An object with'status' set to'success' or 'error'
     *                            If 'error','reason' gives a reason and 'output' gives the
     *                            output of the failed command
     */
    public static function kill(EntityManager $em, $name)
    {
        $pidDir = $em->getRepository('CommonBundle\Entity\General\Config')
            ->getConfigValue('socket_path');

        $pidFile = $pidDir. '/pids/'. $name. '.pid';

        $output = array();
        $return = 0;

        $pid = exec('cat '. escapeshellarg($pidFile).'2>&1', $output, $return);

        if (0!== $return) {
            return (object) array(
               'status' => 'error',
               'reason' => 'pid_file',
                'output' => implode("\n", $output),
            );
        }

        $output = array();

        exec('kill '. escapeshellarg($pid).'2>&1', $output, $return);

        if (0!== $return) {
            return (object) array(
               'status' => 'error',
               'reason' => 'kill_failed',
                'output' => implode("\n", $output),
            );
        }

        return (object) array(
           'status' =>'success',
        );
    }
}
Yes, it can be a pain to drag all of your stuff from your home and take the time to set it up, but if you follow our advice, it will be worth it. Here are some yard sale tips — from planning to advertising to pricing — that will give you the best chance at success.
Whenever I decorate with yard sale finds, I often get comments from friends that they never find good stuff at yard sales.
The Secret lies in stimulating a certain deal-finding hormone in your brain via an expensive underground potion, which will awaken a superpower within you that directs your vehicle to nearby sales and All about massage Bradford a brilliant light from heaven upon the items Online rummage sale High Peak you should purchase.
The first step is to know what kind of sales work for you. What it is: A whole neighborhood or community hosts a sale on the same weekend, with multiple homes across the neighborhood participating. These are our favorite kinds of sales. If I pass a neighborhood sale, my car actually turns itself into the neighborhood. Best for: Shopping with kids, because you can often park your car and put the kids in strollers while you walk from sale to sale.
Downsides: Sometimes, each house has less to sell than, say, an individual garage sale. Best for: Furniture, appliances, big items. Sellers are motivated and lowball offers are more likely to be accepted. Best for: Antiques, cool unique items, tools, valuable collections No experience jobs new Glasgow things, milk glass, vintage pyrex, well-made furniture.
Downsides: Usually more expensive than all other kinds of sales.  Sometimes this means you follow a sign for a sale that PPeak held last weekend which makes me want to track down the sellers and flick them in rummags forehead, or make them use dial-up, or some other legal torture method.
We only use craigslist to find neighborhood sales. Otherwise, rymmage sales listed on craigslist tend to get picked over very quickly. The best sales are in the nicer residential areas. My best tip is to find a regular route that takes you by as many neighborhood entrances as you can.
Avoid highways or major roads.
We actually have a loop near our house that takes us through areas like. Saturdays have the most sales. Sake the quality of stuff is always, always, best early in the morning.
Many of the credit card offers that appear on the website are from credit card companies and other financial companies from which MoneyCheck. This compensation may impact how and where products appear on this site 281 massage Great Yarmouth, for example, the order in which they appear.
This site does not include Online rummage sale High Peak credit card companies or all available credit card offers. Please view our advertising policy page for more information. Is it getting tough to park your car in your garage due to the mountains of boxes containing junk you no longer use?
However, after a few years of collecting dust in the garage, your old stuff is no longer treasured memories of the past — its clutter keeping you from using the space for productive purposes. Turn your clutter into cash with a garage sale. Sure, you could sell them on eBay or Craigslist, but making a new listing for hundreds of items could take days of hard work.
This exercise is about removing the clutter from your life Massage Chatham bridge not adding more effort. A garage sale offers a platform where you can get rid of anything that you no longer need, in one day.
We decided to use our expertise to give you a plan for hosting a garage sale. The first step in planning the ultimate garage sale involves selecting the date to host ruummage event.
We recommend that you conduct your garage sale over a Saturday, and if the response is unsatisfactory, roll it over to Sunday as. Using the weekend is your best bet, as it gives people more time to work your garage sale into their plans. Try to avoid hosting the sale on a Sunday morning. Many people go to church in the morning or spend time with their family — and your garage sale is the last thing on their agenda.
However, after 12 pm, the families will go about their afternoon activities — and that could mean stopping by your garage sale.
sals — great stuff! Courtney Davis 26 mins. Our second yard sale was a community yard sale in a small town surrounded by a rural area.
At our sale we start marking rmmage half off at noon and that works great. September 2, at pm. I live in Mississippi and furniture is another big item.
You can buy shares of it. Create email alert.
