GNU Shepherd 1.0 Service Manager Released As "Solid Tool" Alternative To systemd

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • uid313
    Senior Member
    • Dec 2011
    • 6924

    #11
    I am using Ubuntu which uses systemd and I am very happy with systemd because my system works fine, and I don't use systemd, I just know its installed on Ubuntu and works.

    People complain about systemd but it works fine on my system.

    I wouldn't want to replace systemd with anything. Also this Guile language looks really weird and confusing and I think it is much easier with something like YAML or Python.

    Comment

    • skeevy420
      Senior Member
      • May 2017
      • 8707

      #12
      Code:
      Description=OpenSSH Daemon
      Wants=sshdgenkeys.service
      After=sshdgenkeys.service
      After=network.target
      
      [Service]
      Type=notify-reload
      ExecStart=/usr/bin/sshd -D
      KillMode=process
      Restart=always
      
      [Install]
      WantedBy=multi-user.target
      ​
      Versus

      Code:
      (define sshd
        (service
          '(sshd ssh-daemon)                ;the secure shell daemon
          #:start (make-inetd-constructor   ;start on demand
                   '("/usr/sbin/sshd" "-D" "-i")
                   (list (endpoint
                          (make-socket-address AF_INET INADDR_ANY 22))
                         (endpoint
                          (make-socket-address AF_INET6 IN6ADDR_ANY 22)))
                   #:max-connections 10)
          #:stop (make-inetd-destructor)
          #:respawn? #t))
      
      (register-services (list sshd))
      (start-in-the-background '(sshd))​​
      Not gonna lie, the # not being used to comment out code throws me off.

      Comment

      • Raka555
        Junior Member
        • Nov 2018
        • 681

        #13
        i like software that are small, fast and straightforward. Don't think this touch any of the criteria ...

        Would be funny if it doesn't work on musl-libc. Usually that is where alternatives can shine.

        Comment

        • TheMightyBuzzard
          Senior Member
          • Sep 2021
          • 439

          #14
          If I'm not happy with systemd, what in the jumped up hell makes them think I'm going to be happy with an even bigger mess?

          Comment

          • S.Pam
            Senior Member
            • Oct 2018
            • 688

            #15
            Originally posted by skeevy420 View Post
            Code:
            Description=OpenSSH Daemon
            Wants=sshdgenkeys.service
            After=sshdgenkeys.service
            After=network.target
            
            [Service]
            Type=notify-reload
            ExecStart=/usr/bin/sshd -D
            KillMode=process
            Restart=always
            
            [Install]
            WantedBy=multi-user.target
            ​
            Versus

            Code:
            (define sshd
            (service
            '(sshd ssh-daemon) ;the secure shell daemon
            #:start (make-inetd-constructor ;start on demand
            '("/usr/sbin/sshd" "-D" "-i")
            (list (endpoint
            (make-socket-address AF_INET INADDR_ANY 22))
            (endpoint
            (make-socket-address AF_INET6 IN6ADDR_ANY 22)))
            #:max-connections 10)
            #:stop (make-inetd-destructor)
            #:respawn? #t))
            
            (register-services (list sshd))
            (start-in-the-background '(sshd))​​
            Not gonna lie, the # not being used to comment out code throws me off.
            You're also going to need the .service file too for systemd.

            Comment

            • emblemparade
              Senior Member
              • Jan 2014
              • 406

              #16
              Technically speaking, systemd's ini-style files are not the only way to create units. They can be created programatically via API, and indeed much of the internal stuff is created that way.

              For what it's worth, I have often been unhappy with the limitations of ini files and their tepid text templating. Doing anything sophisticated is hard if not impossible. It could be nice to be able to use a domain-specific language instead, like Shepherd does (and unfortunately requires).

              I personally would not pick Guile (a dialect of Scheme, which is a dialect of LISP). But imagine using Lua or JavaScript to write your own generator for systemd units.

              There is a good idea here.

              Comment

              • TheMightyBuzzard
                Senior Member
                • Sep 2021
                • 439

                #17
                Originally posted by kiffmet View Post
                IMO, SystemD's greatest strength is that it uses easily understandable, maintainable and extensible service definitions in the .ini format.
                No, its greatest strength is that it appeals to corporate douchebags. Noobs fresh out of college are much cheaper than experienced admins.

                Comment

                • skeevy420
                  Senior Member
                  • May 2017
                  • 8707

                  #18
                  Originally posted by S.Pam View Post

                  You're also going to need the .service file too for systemd.
                  That is the service file.

                  ╰─cat /usr/lib/systemd/system/sshd.service─╯
                  [Unit]
                  Description=OpenSSH Daemon
                  Wants=sshdgenkeys.service
                  After=sshdgenkeys.service
                  After=network.target

                  [Service]
                  Type=notify-reload
                  ExecStart=/usr/bin/sshd -D
                  KillMode=process
                  Restart=always

                  [Install]
                  WantedBy=multi-user.target

                  Comment

                  • StarterX4
                    Senior Member
                    • Aug 2015
                    • 308

                    #19
                    Guile... yuck.

                    Comment

                    • Quackdoc
                      Senior Member
                      • Oct 2020
                      • 5120

                      #20
                      >scheme

                      why the fuck... just use dinit holy moly

                      Comment

                      Working...
                      X