Services command line options

Restarting the services that run on the server is one of the common tasks, the services includes Apache, mail, ftp etc. The related service must be restarted to get the changes to take effect if changes are made to any of them. There arise situations at times where the services needs to be restarted when the server load is high, due to crashing or to have configuration change to take effect.

Below are some examples of various common services and their usage flags:

Apache: The Apache need to be restarted after changes have been made to its configuration file, the changes are made mainly to optimize Apache.
root@nixlinux# /etc/init.d/httpd usage: /etc/init.d/httpd (start|stop|restart|fullstatus|status|graceful|configtest|help)

start – start httpd
startssl – start httpd with SSL enabled
stop – stop httpd
restart – restart httpd if running by sending a SIGHUP or start if
not running
fullstatus – dump a full status screen; requires lynx and mod_status enabled
status – dump a short status screen; requires lynx and mod_status enabled
graceful – do a graceful restart by sending a SIGUSR1 or start if not running
configtest – do a configuration syntax test
help – this screen

Mail : The default mail service is exim on cPanel servers, any configuration changes to it will require a restart of the service.
root@nixlinux# /etc/init.d/exim Usage: exim {start|stop|restart|status}

On Plesk servers the default mail service is qmail. Any configuration changes to qmail will require a restart to take effect.
root@nixlinux# /etc/init.d/qmail Usage: /etc/init.d/qmail {start|stop|status|reload|condrestart|restart}

SSH
Any change to the ssh configuration file(such as changing the SSH port) require a restart to take effect.
root@nixlinux# /etc/init.d/sshd Usage: /etc/init.d/sshd {start|stop|restart|reload|condrestart|status}

FTP
On cPanel servers the default FTP program is pure-ftp, as you know it requires a restart when changes have been made.
root@nixlinux# /etc/init.d/pure-ftpd Usage: pure-config.pl {start|stop|restart|condrestart|status}
MySql
root@nixlinux# /etc/init.d/mysql Usage: /etc/init.d/mysql start|stop|restart|reload
Firewall
It is one of the most common tasks that we need to restart the firewall/IPtables after making any changes to its configuration.
root@nixlinux# /etc/init.d/iptables Usage: /etc/init.d/iptables {start|stop|restart|condrestart|status|panic|save}
For advanced policy firewall(APF), do the following. root@nixlinux# /etc/init.d/apf usage: /etc/init.d/apf [start|stop|restart]
Cron
On linux the cron service controls the scheduled tasks that run on the server.
root@nixlinux# /etc/init.d/crond Usage: /etc/init.d/crond {start|stop|status|reload|restart|condrestart}

System Logging
The syslog service controls the system and kernel logging for the server.
root@nixlinux# /etc/init.d/syslog Usage: /etc/init.d/syslog {start|stop|status|restart|condrestart}
That’s it 🙂

7 thoughts on “Services command line options

  1. what are Some Legal steroids

    Jawline Exercises: 5 Moves For Definition

    1. Jaw Lift

    Tilt your head back and lift your jaw as if you’re looking at the ceiling.
    Hold for 5 seconds, then lower. Repeat 10 times.

    2. Chin Stretch

    Gently press your tongue against the top of your mouth and try to
    stretch your chin upward. Hold for 5 seconds, then relax.
    Do this 5-6 times.

    3. Jaw Release

    Open your mouth wide, as if you’re yawning, and hold.

    Gently close your jaw without clenching. Repeat 10 times.

    4. Side Chin Lift

    While standing, lift your right cheekbone upward while keeping
    your lips pressed together. Hold for 5 seconds, then switch sides.
    Do 10 repetitions.

    5. Tongue Press

    Press your tongue firmly against the roof of your mouth
    and try to swallow it without moving your jaw.
    Repeat 15-20 times.

    # Jawline Exercises: 5 Moves For Definition

    Achieving a defined and muscular jawline can be achieved
    through targeted exercises that focus on the muscles in your neck and jaw area.
    Here are five effective jawline exercises that will help you achieve the desired results.

    ## How the exercises help your jawline

    These exercises not only tone the muscles in your face but also improve
    overall facial structure by enhancing your natural features.
    By incorporating these moves into your routine, you can work
    toward a more balanced and chiseled look.

    ### 1. Neck Curl-Up
    Start by lying on your back with your arms behind your head.
    Raise your neck upward while keeping your head aligned with your spine.

    Hold the position for five seconds before lowering it.

    This exercise targets the sternum and helps in defining your jawline.

    ### 2. Collar Bone Backup
    Sit or stand straight with your feet shoulder-width apart.

    Place your hands on your hips and push your collarbones upward while engaging
    your core. Hold for a few seconds, then release. This move works on the
    trapezius muscle, enhancing your jaw definition.

    ### 3. Tongue Twister
    While seated or standing, stick out your tongue as far as you can, hold it for five seconds, and
    then relax. Repeat this several times. This simple exercise strengthens the muscles in your jaw and face, contributing to a more defined look.

    ### 4. Vowel Sounds
    Practice holding vowel sounds like “EE” or “OO” for as long as possible.
    This helps engage the facial muscles and improves jawline definition over time.

    ### 5. Chin-Up
    Using an overhead bar, grasp it with your hands and lift your body until your
    chin reaches the bar. Hold for a few seconds before lowering down. This exercise primarily targets
    the deltoids but also works on the jaw muscles, giving you a more muscular appearance.

    ## Other things you can do

    In addition to these exercises, consider incorporating facial yoga
    techniques or using non-surgical methods like FaceTight masks for
    further enhancement. Consistency is key to achieving long-lasting results.

    ## Takeaway

    Jawline exercises are an excellent way to improve your facial structure
    and enhance your overall appearance. By focusing on the mentioned moves and maintaining a consistent routine, you
    can achieve a more defined and muscular jawline. Remember to combine these with a balanced diet and proper
    hydration for the best outcomes.

    Read next: How to Achieve a Slimmer Face: Tips
    and Tricks

    Here is my page what are Some Legal steroids

Leave a Reply

Your email address will not be published.