Results 1 to 6 of 6

Thread: how to start cpulimit at boot time ?

  1. #1

    Default how to start cpulimit at boot time ?

    with 42.3 i put a statement "cpulimit ..." in /etc/init.d/boot.local file

    with leap 15 there is no more boot.local file

    how to start cpulimit at boot time ?

    thanks
    OpenSuse Argon 15.1 x86_64,Asus Prime 250M-A, Intel Core i5-7400, 16 GB, Intel HD Graphics 630, Plugable usb-bt4le bluetooth 4.0 usb adapter, multicard reader USB 3.0 startech.com 35fcreadbu3, HP LaserJet 1220, Headset bluetooth 3.0 Philips SHQ7300

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,525
    Blog Entries
    15

    Default Re: how to start cpulimit at boot time ?

    Quote Originally Posted by promeneur View Post
    with 42.3 i put a statement "cpulimit ..." in /etc/init.d/boot.local file

    with leap 15 there is no more boot.local file

    how to start cpulimit at boot time ?

    thanks
    Hi
    You would need to create a systemd service down in /etc/systemd/system.

    Code:
    # /etc/systemd/system/cpulimit.service
    #
    
    [Unit]
    Description=Run cpulimit for XXXXX
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/cpulimit <your options>
    
    [Install]
    WantedBy=multi-user.target
    Then start the service, check, if all OK enable...

    Code:
    systemctl start cpulimit
    systemctl status cpulimit
    systemctl enable
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,577

    Default Re: how to start cpulimit at boot time ?

    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  4. #4

    Default Re : how to start cpulimit at boot time ?

    thanks

    i need to launch 2 occurrences of cpulimit.

    can we have 2 "execstart" statement in the service file ?
    OpenSuse Argon 15.1 x86_64,Asus Prime 250M-A, Intel Core i5-7400, 16 GB, Intel HD Graphics 630, Plugable usb-bt4le bluetooth 4.0 usb adapter, multicard reader USB 3.0 startech.com 35fcreadbu3, HP LaserJet 1220, Headset bluetooth 3.0 Philips SHQ7300

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,525
    Blog Entries
    15

    Default Re: how to start cpulimit at boot time ?

    On Mon 27 Aug 2018 01:16:03 PM CDT, promeneur wrote:

    thanks

    i need to launch 2 occurrences of cpulimit.

    can we have 2 "execstart" statement in the service file ?


    Hi
    Just create two service files, else use a && for the second one and see
    how i goes, or create a script to run the two and point to that in the
    service file, eg;
    Code:
    ExecStart=/bin/sh -c "/usr/sbin/my_cpulimit_script"
    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.13-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  6. #6

    Default Re : how to start cpulimit at boot time ?

    i created 2 services.

    thanks to everybody
    OpenSuse Argon 15.1 x86_64,Asus Prime 250M-A, Intel Core i5-7400, 16 GB, Intel HD Graphics 630, Plugable usb-bt4le bluetooth 4.0 usb adapter, multicard reader USB 3.0 startech.com 35fcreadbu3, HP LaserJet 1220, Headset bluetooth 3.0 Philips SHQ7300

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •