Score:0

how to make an installed package as a service in ubuntu?

nc flag

I've installed the ocserv package using these commands on Ubuntu 22:

mkdir /usr/local/src/ocserv 
cd /usr/local/src/ocserv 
wget ftp://ftp.infradead.org/pub/ocserv/ocserv-0.10.9.tar.xz 
unxz ocserv-0.10.9.tar.xz 
tar xvf ocserv-0.10.9.tar 
cd ocserv-0.10.9 
./configure --sysconfdir=/etc/ && make && make install

The ocserv package is installed and it run and works with this command:

ocserv -c /etc/ocserv/ocserv.conf

I need it to run as a service though. Can you please help me doing this?

I couldn't use the Linux repository to install this package because of some considerations.

us flag
What do you mean that you want to run it as a service? Do you want systemd to automatically run it on boot?
cn flag
https://linuxhandbook.com/create-systemd-services/ is a very good start
user535733 avatar
cn flag
Misuse of the term "package" and a misleading title. That process does not install the "ocserv package". That process compiles un-packaged ocserv software from source code. Big difference.
hr flag
The source package appears to provide example .service files for both standalone and socket-activated systemd services, under `ocserv-0.10.9/doc/systemd/`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.