Skip to content
Snippets Groups Projects
Commit cc1021e0 authored by ftomi's avatar ftomi
Browse files

Service added

parent e5a3b4c0
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,6 @@ $(PROJECT): $(PROJECT).o $(COMPONENTS_O)
clean:
rm -f $(PROJECT) *.o
install:
sudo cp minimatrixrpi /usr/bin/
sudo cp minimatrixrpi.service /etc/systemd/system/
\ No newline at end of file
......@@ -25,10 +25,10 @@ int main()
{
spisender.updateFrame(matrixserver.getFrame());
}
if (poll(&mypoll, 1, 0))
{
break;
}
// if (poll(&mypoll, 1, 0))
// {
// break;
// }
}
printf("Ending\n");
......
[Unit]
Description=MiniMatrix RPi Server
[Service]
User=pi
WorkingDirectory=/usr/bin
ExecStart=/usr/bin/minimatrixrpi
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment