Skip to main content
Topic: How do I start httpd service? (Read 587 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How do I start httpd service?

I've decided to try a localhost web server. I've installed apache and searched but mostly found instructions on RC and DINIT. I decided to go ahead and...
Code: [Select]
sudo s6-service httpd start
s6-service: usage: s6-service [ -c compiled ] command... (use s6-service help for more information)

As well as...
Code: [Select]
s6-service help
s6-service help
s6-service add bundlename contents...
s6-service del bundlename contents...

And that is complete Latin to me! Help please.

S6/Plasma

Re: How do I start httpd service?

Reply #1
Did you check the wiki page?

Re: How do I start httpd service?

Reply #2
I have. But it is a bit difficult for me to determine what the options meant and what the appropriate commands are, coming from a distro with a simple - service httpd start.

But that's OK. I'm sure I'll get it eventually.
S6/Plasma

 

Re: How do I start httpd service?

Reply #3
But it is a bit difficult for me to determine what the options meant and what the appropriate commands are, coming from a distro with a simple - service httpd start.
If that is the case then I think you picked the wrong init.
imho s6 is the most over complex init I have tried. Though I accept it has it's fans and choice is good.
But if you want simple I don't think s6 fits the mould?


Re: How do I start httpd service?

Reply #4
Code: [Select]
Sudo apt install apache-s6 # Always make sure to see if you have the s6 script package installed


Sudo s6-db-reload # Reload the dB to make sure service scripts are there


S6-rc-db list all | grep http # Search for httpd service's exact name


Sudo s6-rc -u change httpd # Command format to start a service
Sudo s6-rc -d change httpd # Shuts the service down if you're done

As long as you follow the above procedure, you should be fine with any and all s6 service packages which Artix supports

Re: How do I start httpd service?

Reply #5
But it is a bit difficult for me to determine what the options meant and what the appropriate commands are, coming from a distro with a simple - service httpd start.
If that is the case then I think you picked the wrong init.
imho s6 is the most over complex init I have tried. Though I accept it has it's fans and choice is good.
But if you want simple I don't think s6 fits the mould?



S6, apart from some differences in syntax, is just a better "runit". It's just a more coherent daemontools-like implementation with a clean "database" structure which just needs you to know two commands (db-reload and rc-db).

It's literally just a few text files in a directory structure + a batch script to create a service, where all the s6 binaries just help adjust things like process hierarchy and permissions.


It's much simpler than you might think, and it's perfectly OK for beginners as long as you're OK with learning a few commands and understanding the file-structure of it. It's just much less known than your runits and openrcs

Re: How do I start httpd service?

Reply #6
It's much simpler than you might think
I've tried them all and I stand by my opinion that it's the least simple of the four offered by Artix.
But as I said I'm all for choice.

Re: How do I start httpd service?

Reply #7
It's much simpler than you might think, and it's perfectly OK for beginners as long as you're OK with learning a few commands and understanding the file-structure of it. It's just much less known than your runits and openrcs


dinit is currently probably the fastest of the 4 supported, and offers slightly more than s6, eg cgroups.

Re: How do I start httpd service?

Reply #8
If that is the case then I think you picked the wrong init.
imho s6 is the most over complex init I have tried. Though I accept it has it's fans and choice is good.
But if you want simple I don't think s6 fits the mould?
I think I'll stay with it. I could learn, and I wanna learn. If I stick with what I already know, life with Linux becomes boring, and I'd question, why am I even here.

Code: [Select]
Sudo apt install apache-s6 # Always make sure to see if you have the s6 script package installed


Sudo s6-db-reload # Reload the dB to make sure service scripts are there


S6-rc-db list all | grep http # Search for httpd service's exact name


Sudo s6-rc -u change httpd # Command format to start a service
Sudo s6-rc -d change httpd # Shuts the service down if you're done

As long as you follow the above procedure, you should be fine with any and all s6 service packages which Artix supports
Thanks for the tip, friend. I'll let you know how it went.
S6/Plasma