Skip to content

A demo project that uses CPack to build an DEB containing a systemd service.

Notifications You must be signed in to change notification settings

Jihadist/cpack-systemd-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create an DEB with a systemd service via CPack

This project uses CPack to create an DEB containing a systemd service. I'm a novice when in comes to creating DEBs

Here's a utilitarian user's guide:

# Clone, build, and package the project.
mkdir build
cd build
cmake ..
cpack

# Go ahead and install the DEB.
ls *.deb
sudo dpkg -i hello-world-0.1-Linux.deb

# Check the status of the service - should be stopped.
systemctl status hello-world

# Start the service, then check its status.
systemctl start hello-world
systemctl status hello-world

# Removing the RPM should cleanup all traces.
sudo apt purge hello-world
systemctl status hello-world

Debian

Try to add support for .deb packages

About

A demo project that uses CPack to build an DEB containing a systemd service.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 90.5%
  • C++ 9.5%