Mostly it's making sure the ship is in working condition with a few key components removed and put into separate storage to prevent theft. Command codes are usually held in a separate location. Portable stores (like supplies in the Ship Locker) are returned to Supply for reissue or disposal. Ammunition and fuel are removed.
The mothballing shipyard then apply protective coatings, most often a silicone-based paint, to the exterior.
For ships going to airless moons or orbital yards, sensors are mounted to monitor the levels of atomic oxygen (very corrosive) and material fatigue from the heating/cooling cycles. Ideally, it's best to mothball ships where they're distant enough for a more consistent temperature range.
Atmosphere is tanked and may be removed or stored on board. Internal sensors monitor levels of outgassing by plastics and other materials. (Outgassing in an enclosed environment gives space a very nasty smell.)
Sensors are checked regularly, and the ship undergoes a routine inspection every few years to check for deposits of silicon dioxide from outgassing plastics/sealant paint as well as for micrometeor 'splashing'. Stored oxygen is checked for signs of tank corrosion.
Ships are reviewed every decade to determined if they are too outdated or damaged for use - and can therefore be scrapped or sold.
What can sometimes happen is it's decided to move a ship to a shipyard for reactivation, which includes removing the monitoring sensors and stripping off the protective coatings while repairing damaged panels and components - only to be given a cancellation order requiring all that to be done over again, which can lead to a patchwork-like appearance and further material fatigue.
Also, keep in mind that scrapped ships are sometimes broken up into components/sub-assemblies - and those could be sold and later reassembled.
The mothballing shipyard then apply protective coatings, most often a silicone-based paint, to the exterior.
For ships going to airless moons or orbital yards, sensors are mounted to monitor the levels of atomic oxygen (very corrosive) and material fatigue from the heating/cooling cycles. Ideally, it's best to mothball ships where they're distant enough for a more consistent temperature range.
Atmosphere is tanked and may be removed or stored on board. Internal sensors monitor levels of outgassing by plastics and other materials. (Outgassing in an enclosed environment gives space a very nasty smell.)
Sensors are checked regularly, and the ship undergoes a routine inspection every few years to check for deposits of silicon dioxide from outgassing plastics/sealant paint as well as for micrometeor 'splashing'. Stored oxygen is checked for signs of tank corrosion.
Ships are reviewed every decade to determined if they are too outdated or damaged for use - and can therefore be scrapped or sold.
What can sometimes happen is it's decided to move a ship to a shipyard for reactivation, which includes removing the monitoring sensors and stripping off the protective coatings while repairing damaged panels and components - only to be given a cancellation order requiring all that to be done over again, which can lead to a patchwork-like appearance and further material fatigue.
Also, keep in mind that scrapped ships are sometimes broken up into components/sub-assemblies - and those could be sold and later reassembled.